C# 클래스 BEPUutilities2.Toolbox

Helper class with many algorithms for intersection testing and 3D math.
파일 보기 프로젝트 열기: RossNordby/scratchpad

공개 프로퍼티들

프로퍼티 타입 설명
BackVector Vector3
BigEpsilon float
DownVector Vector3
Epsilon float
ForwardVector Vector3
IdentityOrientation Quaternion
LeftVector Vector3
NoVector Vector3
RightVector Vector3
RigidIdentity RigidTransform
UpVector Vector3
ZeroVector Vector3

공개 메소드들

메소드 설명
FindRayTriangleIntersection ( Ray &ray, float maximumLength, TriangleSidedness sidedness, Vector3 &a, Vector3 &b, Vector3 &c, RayHit &hit ) : bool

Determines the intersection between a ray and a triangle.

FindRayTriangleIntersection ( Ray &ray, float maximumLength, Vector3 &a, Vector3 &b, Vector3 &c, bool &hitClockwise, RayHit &hit ) : bool

Determines the intersection between a ray and a triangle.

비공개 메소드들

메소드 설명
GetVelocityOfPoint ( Vector3 point, Vector3 center, Vector3 linearVelocity, Vector3 angularVelocity ) : Vector3
GetVelocityOfPoint ( Vector3 &point, Vector3 &center, Vector3 &linearVelocity, Vector3 &angularVelocity, Vector3 &velocity ) : void

메소드 상세

FindRayTriangleIntersection() 공개 정적인 메소드

Determines the intersection between a ray and a triangle.
public static FindRayTriangleIntersection ( Ray &ray, float maximumLength, TriangleSidedness sidedness, Vector3 &a, Vector3 &b, Vector3 &c, RayHit &hit ) : bool
ray Ray Ray to test.
maximumLength float Maximum length to travel in units of the direction's length.
sidedness TriangleSidedness Sidedness of the triangle to test.
a Vector3 First vertex of the triangle.
b Vector3 Second vertex of the triangle.
c Vector3 Third vertex of the triangle.
hit RayHit Hit data of the ray, if any
리턴 bool

FindRayTriangleIntersection() 공개 정적인 메소드

Determines the intersection between a ray and a triangle.
public static FindRayTriangleIntersection ( Ray &ray, float maximumLength, Vector3 &a, Vector3 &b, Vector3 &c, bool &hitClockwise, RayHit &hit ) : bool
ray Ray Ray to test.
maximumLength float Maximum length to travel in units of the direction's length.
a Vector3 First vertex of the triangle.
b Vector3 Second vertex of the triangle.
c Vector3 Third vertex of the triangle.
hitClockwise bool True if the the triangle was hit on the clockwise face, false otherwise.
hit RayHit Hit data of the ray, if any
리턴 bool

프로퍼티 상세

BackVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (0,0,1).
public static Vector3 BackVector
리턴 Vector3

BigEpsilon 공개적으로 정적으로 프로퍼티

Large tolerance value. Defaults to 1e-5f.
public static float BigEpsilon
리턴 float

DownVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (0,-1,0).
public static Vector3 DownVector
리턴 Vector3

Epsilon 공개적으로 정적으로 프로퍼티

Tolerance value. Defaults to 1e-7f.
public static float Epsilon
리턴 float

ForwardVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (0,0,-1).
public static Vector3 ForwardVector
리턴 Vector3

IdentityOrientation 공개적으로 정적으로 프로퍼티

Refers to the identity quaternion.
public static Quaternion IdentityOrientation
리턴 Quaternion

LeftVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (-1,0,0).
public static Vector3 LeftVector
리턴 Vector3

NoVector 공개적으로 정적으로 프로퍼티

Represents an invalid Vector3.
public static Vector3 NoVector
리턴 Vector3

RightVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (1,0,0).
public static Vector3 RightVector
리턴 Vector3

RigidIdentity 공개적으로 정적으로 프로퍼티

Refers to the rigid identity transformation.
public static RigidTransform,BEPUutilities2 RigidIdentity
리턴 RigidTransform

UpVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (0,1,0).
public static Vector3 UpVector
리턴 Vector3

ZeroVector 공개적으로 정적으로 프로퍼티

Reference for a vector with dimensions (0,0,0).
public static Vector3 ZeroVector
리턴 Vector3