C# Class BEPUutilities2.Toolbox

Helper class with many algorithms for intersection testing and 3D math.
Afficher le fichier Open project: RossNordby/scratchpad

Méthodes publiques

Свойство Type Description
BackVector Vector3
BigEpsilon float
DownVector Vector3
Epsilon float
ForwardVector Vector3
IdentityOrientation Quaternion
LeftVector Vector3
NoVector Vector3
RightVector Vector3
RigidIdentity RigidTransform
UpVector Vector3
ZeroVector Vector3

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetVelocityOfPoint ( Vector3 point, Vector3 center, Vector3 linearVelocity, Vector3 angularVelocity ) : Vector3
GetVelocityOfPoint ( Vector3 &point, Vector3 &center, Vector3 &linearVelocity, Vector3 &angularVelocity, Vector3 &velocity ) : void

Method Details

FindRayTriangleIntersection() public static méthode

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
Résultat bool

FindRayTriangleIntersection() public static méthode

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
Résultat bool

Property Details

BackVector public_oe static_oe property

Reference for a vector with dimensions (0,0,1).
public static Vector3 BackVector
Résultat Vector3

BigEpsilon public_oe static_oe property

Large tolerance value. Defaults to 1e-5f.
public static float BigEpsilon
Résultat float

DownVector public_oe static_oe property

Reference for a vector with dimensions (0,-1,0).
public static Vector3 DownVector
Résultat Vector3

Epsilon public_oe static_oe property

Tolerance value. Defaults to 1e-7f.
public static float Epsilon
Résultat float

ForwardVector public_oe static_oe property

Reference for a vector with dimensions (0,0,-1).
public static Vector3 ForwardVector
Résultat Vector3

IdentityOrientation public_oe static_oe property

Refers to the identity quaternion.
public static Quaternion IdentityOrientation
Résultat Quaternion

LeftVector public_oe static_oe property

Reference for a vector with dimensions (-1,0,0).
public static Vector3 LeftVector
Résultat Vector3

NoVector public_oe static_oe property

Represents an invalid Vector3.
public static Vector3 NoVector
Résultat Vector3

RightVector public_oe static_oe property

Reference for a vector with dimensions (1,0,0).
public static Vector3 RightVector
Résultat Vector3

RigidIdentity public_oe static_oe property

Refers to the rigid identity transformation.
public static RigidTransform,BEPUutilities2 RigidIdentity
Résultat RigidTransform

UpVector public_oe static_oe property

Reference for a vector with dimensions (0,1,0).
public static Vector3 UpVector
Résultat Vector3

ZeroVector public_oe static_oe property

Reference for a vector with dimensions (0,0,0).
public static Vector3 ZeroVector
Résultat Vector3