C# Класс Project290.Physics.Common.Path

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

Private Properties

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

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

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

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

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

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

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 ) : List
divisions int Number of divisions between each control point.
Результат List

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

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

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

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

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

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

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

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