C# Класс FarseerPhysics.Common.Path

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
controlPoints List

Открытые методы

Метод Описание
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.

Описание методов

Path() публичный Метод

Initializes a new instance of the Path class.
public Path ( ) : System
Результат System

Path() публичный Метод

Initializes a new instance of the Path class.
public Path ( IList vertices ) : System
vertices IList The vertices to created the path from.
Результат System

Path() публичный Метод

Initializes a new instance of the Path class.
public Path ( Vector2 vertices ) : System
vertices Vector2 The vertices to created the path from.
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

add() публичный Метод

public add ( Vector2 point ) : void
point Vector2
Результат void

getFileNameWithoutExtension() публичный статический Метод

public static getFileNameWithoutExtension ( string fontFile ) : string
fontFile string
Результат string

getLength() публичный Метод

public getLength ( ) : float
Результат float

getPosition() публичный Метод

public getPosition ( float time ) : Vector2
time float
Результат Vector2

getPositionNormal() публичный Метод

Gets the normal for the given time.
public getPositionNormal ( float time ) : Vector2
time float The time
Результат Vector2

getVertices() публичный Метод

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.
Результат Vertices

nextIndex() публичный Метод

Gets the next index of a controlpoint
public nextIndex ( int index ) : int
index int The index.
Результат int

previousIndex() публичный Метод

Gets the previous index of a controlpoint
public previousIndex ( int index ) : int
index int The index.
Результат int

remove() публичный Метод

public remove ( Vector2 point ) : void
point Vector2
Результат void

removeAt() публичный Метод

public removeAt ( int index ) : void
index int
Результат void

rotate() публичный Метод

Rotate the control points by the defined value in radians.
public rotate ( float value ) : void
value float The amount to rotate by in radians.
Результат void

scale() публичный Метод

Scales the control points by the specified vector.
public scale ( Vector2 &value ) : void
value Vector2 The Value.
Результат void

subdivideEvenly() публичный Метод

public subdivideEvenly ( int divisions ) : List
divisions int
Результат List

translate() публичный Метод

Translates the control points by the specified vector.
public translate ( Vector2 &vector ) : void
vector Vector2 The vector.
Результат void

Описание свойств

controlPoints публичное свойство

All the points that makes up the curve
public List controlPoints
Результат List