C# Class FarseerPhysics.Common.Path

Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
controlPoints List

Méthodes publiques

Méthode 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 méthode

Initializes a new instance of the Path class.
public Path ( ) : System
Résultat System

Path() public méthode

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

Path() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

add() public méthode

public add ( Vector2 point ) : void
point Vector2
Résultat void

getFileNameWithoutExtension() public static méthode

public static getFileNameWithoutExtension ( string fontFile ) : string
fontFile string
Résultat string

getLength() public méthode

public getLength ( ) : float
Résultat float

getPosition() public méthode

public getPosition ( float time ) : Vector2
time float
Résultat Vector2

getPositionNormal() public méthode

Gets the normal for the given time.
public getPositionNormal ( float time ) : Vector2
time float The time
Résultat Vector2

getVertices() public méthode

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.
Résultat Vertices

nextIndex() public méthode

Gets the next index of a controlpoint
public nextIndex ( int index ) : int
index int The index.
Résultat int

previousIndex() public méthode

Gets the previous index of a controlpoint
public previousIndex ( int index ) : int
index int The index.
Résultat int

remove() public méthode

public remove ( Vector2 point ) : void
point Vector2
Résultat void

removeAt() public méthode

public removeAt ( int index ) : void
index int
Résultat void

rotate() public méthode

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

scale() public méthode

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

subdivideEvenly() public méthode

public subdivideEvenly ( int divisions ) : List
divisions int
Résultat List

translate() public méthode

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

Property Details

controlPoints public_oe property

All the points that makes up the curve
public List controlPoints
Résultat List