C# 클래스 Project290.Physics.Common.Path

파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

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