C# Class FarseerPhysics.Common.Path

Mostrar archivo Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
controlPoints List

Public Methods

Method Description
Path ( ) : System

Initializes a new instance of the Path class.

Path ( IList vertices ) : System

Initializes a new instance of the Path class.

Path ( Vector2 vertices ) : System

Initializes a new instance of the Path class.

ToString ( ) : string
add ( Vector2 point ) : void
getFileNameWithoutExtension ( string fontFile ) : string
getLength ( ) : float
getPosition ( float time ) : Vector2
getPositionNormal ( float time ) : Vector2

Gets the normal for the given time.

getVertices ( int divisions ) : Vertices

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

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
translate ( Vector2 &vector ) : void

Translates the control points by the specified vector.

Method Details

Path() public method

Initializes a new instance of the Path class.
public Path ( ) : System
return System

Path() public method

Initializes a new instance of the Path class.
public Path ( IList vertices ) : System
vertices IList The vertices to created the path from.
return System

Path() public method

Initializes a new instance of the Path class.
public Path ( Vector2 vertices ) : System
vertices Vector2 The vertices to created the path from.
return System

ToString() public method

public ToString ( ) : string
return string

add() public method

public add ( Vector2 point ) : void
point Vector2
return void

getFileNameWithoutExtension() public static method

public static getFileNameWithoutExtension ( string fontFile ) : string
fontFile string
return string

getLength() public method

public getLength ( ) : float
return float

getPosition() public method

public getPosition ( float time ) : Vector2
time float
return Vector2

getPositionNormal() public method

Gets the normal for the given time.
public getPositionNormal ( float time ) : Vector2
time float The time
return Vector2

getVertices() public method

Returns a set of points defining the curve with the specifed number of divisions between each control point.
public getVertices ( int divisions ) : Vertices
divisions int Number of divisions between each control point.
return Vertices

nextIndex() public method

Gets the next index of a controlpoint
public nextIndex ( int index ) : int
index int The index.
return int

previousIndex() public method

Gets the previous index of a controlpoint
public previousIndex ( int index ) : int
index int The index.
return int

remove() public method

public remove ( Vector2 point ) : void
point Vector2
return void

removeAt() public method

public removeAt ( int index ) : void
index int
return void

rotate() public method

Rotate the control points by the defined value in radians.
public rotate ( float value ) : void
value float The amount to rotate by in radians.
return void

scale() public method

Scales the control points by the specified vector.
public scale ( Vector2 &value ) : void
value Vector2 The Value.
return void

subdivideEvenly() public method

public subdivideEvenly ( int divisions ) : List
divisions int
return List

translate() public method

Translates the control points by the specified vector.
public translate ( Vector2 &vector ) : void
vector Vector2 The vector.
return void

Property Details

controlPoints public_oe property

All the points that makes up the curve
public List controlPoints
return List