C# Class Project290.Mathematics.tVector2

This is a transitioning Vector2. This is used like a tfloat.
Show file Open project: scastle/Solitude Class Usage Examples

Public Methods

Method Description
GoTo ( float xTarget, float yTarget ) : void

Goes to the specified x,y target.

GoTo ( float xTarget, float yTarget, float duration ) : void

Goes to the specified x,y target.

GoTo ( float xTarget, float yTarget, float duration, bool useRealTime ) : void

Goes to the specified x,y target.

Set ( float xValue, float yValue ) : void

Sets the specified Vector2 value.

Update ( ) : void

Updates this instance.

tVector2 ( float x, float y ) : System

Initializes a new instance of the tVector2 class.

Method Details

GoTo() public method

Goes to the specified x,y target.
public GoTo ( float xTarget, float yTarget ) : void
xTarget float The x target.
yTarget float The y target.
return void

GoTo() public method

Goes to the specified x,y target.
public GoTo ( float xTarget, float yTarget, float duration ) : void
xTarget float The x target.
yTarget float The y target.
duration float The duration in seconds.
return void

GoTo() public method

Goes to the specified x,y target.
public GoTo ( float xTarget, float yTarget, float duration, bool useRealTime ) : void
xTarget float The x target.
yTarget float The y target.
duration float The duration in seconds.
useRealTime bool if set to true [use real time].
return void

Set() public method

Sets the specified Vector2 value.
public Set ( float xValue, float yValue ) : void
xValue float The x value.
yValue float The y value.
return void

Update() public method

Updates this instance.
public Update ( ) : void
return void

tVector2() public method

Initializes a new instance of the tVector2 class.
public tVector2 ( float x, float y ) : System
x float The x value.
y float The y value.
return System