Property | Type | Description |
---|
Method | Description | |
---|---|---|
Add ( Vector2 point ) : void | ||
GetLength ( ) : float | ||
GetPosition ( float time ) : Vector2 | ||
GetPositionNormal ( float time ) : Vector2 |
Gets the normal for the given time.
|
|
GetVertices ( int divisions ) : List |
Returns a set of points defining the curve with the specifed number of divisions between each control point.
|
|
NextIndex ( int index ) : int |
Gets the next index of a controlpoint
|
|
Path ( ) : System |
Initializes a new instance of the Path class.
|
|
Path ( IList |
Initializes a new instance of the Path class.
|
|
Path ( Vector2 vertices ) : System |
Initializes a new instance of the Path class.
|
|
PreviousIndex ( int index ) : int |
Gets the previous index of a controlpoint
|
|
Remove ( Vector2 point ) : void | ||
RemoveAt ( int index ) : void | ||
Rotate ( float value ) : void |
Rotate the control points by the defined value in radians.
|
|
Scale ( Vector2 &value ) : void |
Scales the control points by the specified vector.
|
|
SubdivideEvenly ( int divisions ) : List |
||
ToString ( ) : string | ||
Translate ( Vector2 &vector ) : void |
Translates the control points by the specified vector.
|
public GetPositionNormal ( float time ) : Vector2 | ||
time | float | The time |
return | Vector2 |
public GetVertices ( int divisions ) : List |
||
divisions | int | Number of divisions between each control point. |
return | List |
public Path ( IList |
||
vertices | IList |
The vertices to created the path from. |
return | System |
public Path ( Vector2 vertices ) : System | ||
vertices | Vector2 | The vertices to created the path from. |
return | System |
public PreviousIndex ( int index ) : int | ||
index | int | The index. |
return | int |
public Rotate ( float value ) : void | ||
value | float | The amount to rotate by in radians. |
return | void |
public SubdivideEvenly ( int divisions ) : List |
||
divisions | int | |
return | List |
public Translate ( Vector2 &vector ) : void | ||
vector | Vector2 | The vector. |
return | void |