C# 클래스 FarseerPhysics.Common.Path

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

공개 프로퍼티들

프로퍼티 타입 설명
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