C# Класс BEPUutilities2.Toolbox

Helper class with many algorithms for intersection testing and 3D math.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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