C#Code
C#Code
Public Member Functions | Protected Attributes
Libraries.Movement.TimePointOnLine1D Class Reference

List of all members.

Public Member Functions

 TimePointOnLine1D ()
 TimePointOnLine1D (double startPos, double endPos, int timeTakes)
void Setup (double startPos, double endPos, int timeTakes)
double GetPoint (int time)
int GetTimeTakes ()

Protected Attributes

double m_startPos
 Starting position of the bandwagon.
double m_endPos
 Ending position of the bandwagon.
int m_timeTakes
 How long it takes to go from the start of the line to the end.

Detailed Description

A line equation that gives you the position along the line based off a given time.


Constructor & Destructor Documentation

Libraries.Movement.TimePointOnLine1D.TimePointOnLine1D ( )

Default constructor.

Libraries.Movement.TimePointOnLine1D.TimePointOnLine1D ( double  startPos,
double  endPos,
int  timeTakes 
)

Setup the line.

startPos - Starting position.
endPos - Ending position.
timeTakes - How long it takes to go from the start of the line to the end.

Member Function Documentation

double Libraries.Movement.TimePointOnLine1D.GetPoint ( int  time)

Get the point along the line that the given time would be at. The result will be clipped at the start and end of the line.

time - Time along the line to get the point at.
int Libraries.Movement.TimePointOnLine1D.GetTimeTakes ( )

Get the time for how long the line takes to go from the start to the end.

void Libraries.Movement.TimePointOnLine1D.Setup ( double  startPos,
double  endPos,
int  timeTakes 
)

A line equation that gives you the position along the line based off a given time.

startPos - Starting position.
endPos - Ending position.
timeTakes - How long it takes to go from the start of the line to the end.

Member Data Documentation

Ending position of the bandwagon.

Starting position of the bandwagon.

How long it takes to go from the start of the line to the end.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties