C# Class Project290.Physics.Common.Path

Afficher le fichier Open project: scastle/Solitude Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 vertices ) : System

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.

Method Details

Add() public méthode

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

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 ) : List
divisions int Number of divisions between each control point.
Résultat List

NextIndex() public méthode

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

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

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

ToString() public méthode

public ToString ( ) : string
Résultat string

Translate() public méthode

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