C# 클래스 SimpleSoccer.Net.Transformations

파일 보기 프로젝트 열기: soshimozi/SimpleSoccer.Net 1 사용 예제들

공개 메소드들

메소드 설명
CreateWhiskers ( int NumWhiskers, double WhiskerLength, double fov, Vector2D facing, Vector2D origin ) : List

given an origin, a facing direction, a 'field of view' describing the limit of the outer whiskers, a whisker length and the number of whiskers this method returns a vector containing the end positions of a series of whiskers radiating away from the origin and with equal distance between them. (like the spokes of a wheel clipped to a specific segment size)

PointToLocalSpace ( Vector2D point, Vector2D AgentHeading, Vector2D AgentSide, Vector2D AgentPosition ) : Vector2D

PointToWorldSpace ( Vector2D point, Vector2D AgentHeading, Vector2D AgentSide, Vector2D AgentPosition ) : Vector2D

Transforms a point from the agent's local space into world space

Vec2DRotateAroundOrigin ( Vector2D v, double ang ) : void

rotates a vector ang rads around the origin

VectorToWorldSpace ( Vector2D vec, Vector2D AgentHeading, Vector2D AgentSide ) : Vector2D

Transforms a vector from the agent's local space into world space

WorldTransform ( List points, Vector2D pos, Vector2D forward, Vector2D side ) : List

given a List of 2D vectors, a position and orientation this function transforms the 2D vectors into the object's world space

WorldTransform ( List points, Vector2D pos, Vector2D forward, Vector2D side, Vector2D scale ) : List

given a List of 2D vectors, a position, orientation and scale, this function transforms the 2D vectors into the object's world space

메소드 상세

CreateWhiskers() 공개 정적인 메소드

given an origin, a facing direction, a 'field of view' describing the limit of the outer whiskers, a whisker length and the number of whiskers this method returns a vector containing the end positions of a series of whiskers radiating away from the origin and with equal distance between them. (like the spokes of a wheel clipped to a specific segment size)
public static CreateWhiskers ( int NumWhiskers, double WhiskerLength, double fov, Vector2D facing, Vector2D origin ) : List
NumWhiskers int
WhiskerLength double
fov double
facing Vector2D
origin Vector2D
리턴 List

PointToLocalSpace() 공개 정적인 메소드

public static PointToLocalSpace ( Vector2D point, Vector2D AgentHeading, Vector2D AgentSide, Vector2D AgentPosition ) : Vector2D
point Vector2D
AgentHeading Vector2D
AgentSide Vector2D
AgentPosition Vector2D
리턴 Vector2D

PointToWorldSpace() 공개 정적인 메소드

Transforms a point from the agent's local space into world space
public static PointToWorldSpace ( Vector2D point, Vector2D AgentHeading, Vector2D AgentSide, Vector2D AgentPosition ) : Vector2D
point Vector2D
AgentHeading Vector2D
AgentSide Vector2D
AgentPosition Vector2D
리턴 Vector2D

Vec2DRotateAroundOrigin() 공개 정적인 메소드

rotates a vector ang rads around the origin
public static Vec2DRotateAroundOrigin ( Vector2D v, double ang ) : void
v Vector2D
ang double
리턴 void

VectorToWorldSpace() 공개 정적인 메소드

Transforms a vector from the agent's local space into world space
public static VectorToWorldSpace ( Vector2D vec, Vector2D AgentHeading, Vector2D AgentSide ) : Vector2D
vec Vector2D
AgentHeading Vector2D
AgentSide Vector2D
리턴 Vector2D

WorldTransform() 공개 정적인 메소드

given a List of 2D vectors, a position and orientation this function transforms the 2D vectors into the object's world space
public static WorldTransform ( List points, Vector2D pos, Vector2D forward, Vector2D side ) : List
points List
pos Vector2D
forward Vector2D
side Vector2D
리턴 List

WorldTransform() 공개 정적인 메소드

given a List of 2D vectors, a position, orientation and scale, this function transforms the 2D vectors into the object's world space
public static WorldTransform ( List points, Vector2D pos, Vector2D forward, Vector2D side, Vector2D scale ) : List
points List
pos Vector2D
forward Vector2D
side Vector2D
scale Vector2D
리턴 List