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

List of all members.

Public Member Functions

 TimePointOnLine3D ()
 TimePointOnLine3D (Vector3 startPos, Vector3 endPos, int timeTakes)
void Setup (Vector3 startPos, Vector3 endPos, int timeTakes)
Vector3 GetPoint (int time)
int GetTimeTakes ()
 TimePointOnLine3D ()
 TimePointOnLine3D (Vector3 startPos, Vector3 endPos, int timeTakes)
void Setup (Vector3 startPos, Vector3 endPos, int timeTakes)
Vector3 GetPoint (int time)
int GetTimeTakes ()

Protected Attributes

Vector3 m_startPos
 Starting position of the line section.
Vector3 m_endPos
 Ending position of the line section.
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.TimePointOnLine3D.TimePointOnLine3D ( )

Default constructor.

Libraries.Movement.TimePointOnLine3D.TimePointOnLine3D ( Vector3  startPos,
Vector3  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.
Libraries.Movement.TimePointOnLine3D.TimePointOnLine3D ( )

Default constructor.

Libraries.Movement.TimePointOnLine3D.TimePointOnLine3D ( Vector3  startPos,
Vector3  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

Vector3 Libraries.Movement.TimePointOnLine3D.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.

Return:
Value is the pointe based off time on the line.
Vector3 Libraries.Movement.TimePointOnLine3D.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.TimePointOnLine3D.GetTimeTakes ( )

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

int Libraries.Movement.TimePointOnLine3D.GetTimeTakes ( )

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

Return:
Value is the amount of time it takes for the line.

void Libraries.Movement.TimePointOnLine3D.Setup ( Vector3  startPos,
Vector3  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.
void Libraries.Movement.TimePointOnLine3D.Setup ( Vector3  startPos,
Vector3  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 line section.

Ending position of the bandwagon.

Starting position of the line section.

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 files:
 All Classes Namespaces Files Functions Variables Enumerations Properties