C# Class TrianglesInSpace.Motion.LinearMotion

Inheritance: IMotion
Exibir arquivo Open project: anthony-martin/Triangles-in-space Class Usage Examples

Public Methods

Method Description
Equals ( LinearMotion other ) : bool
Equals ( object obj ) : bool
GetCurrentPosition ( ulong currentTime ) : Vector
GetHashCode ( ) : int
GetMotion ( ulong currentTime ) : Vector
GetVelocity ( ulong currentTime ) : Vector
LinearMotion ( ulong startTime, Vector velocity, Vector initialPosition ) : TrianglesInSpace.Primitives

Time based constant velocity linear motion

operator ( ) : bool

Method Details

Equals() public method

public Equals ( LinearMotion other ) : bool
other LinearMotion
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetCurrentPosition() public method

public GetCurrentPosition ( ulong currentTime ) : Vector
currentTime ulong
return TrianglesInSpace.Primitives.Vector

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetMotion() public method

public GetMotion ( ulong currentTime ) : Vector
currentTime ulong
return TrianglesInSpace.Primitives.Vector

GetVelocity() public method

public GetVelocity ( ulong currentTime ) : Vector
currentTime ulong
return TrianglesInSpace.Primitives.Vector

LinearMotion() public method

Time based constant velocity linear motion
public LinearMotion ( ulong startTime, Vector velocity, Vector initialPosition ) : TrianglesInSpace.Primitives
startTime ulong The begining time of this motion
velocity TrianglesInSpace.Primitives.Vector The velocity per second or 1000 time units
initialPosition TrianglesInSpace.Primitives.Vector The starting point of the line
return TrianglesInSpace.Primitives

operator() public static method

public static operator ( ) : bool
return bool