|
static proto float | IntersectionRayBox (vector start, vector end, vector mins, vector maxs) |
|
static proto float | IntersectionRaySphere (vector raybase, vector raycos, vector center, float radius) |
| Tests whether intersection of ray and sphere exists and returns distance to intersection from raybase and raycos (I{01} = P + dir*t{01} ).
|
|
static proto bool | IntersectionSphereCone (vector origin, float radius, vector conepos, vector axis, float angle) |
| Tests whether sphere is intersecting cone.
|
|
static proto bool | IntersectionWholeSphereCone (vector origin, float radius, vector conepos, vector axis, float angle) |
| Tests whether sphere is intersecting cone.
|
|
static proto bool | IntersectionPointCylinder (vector origin, vector cylinderTip, vector cylinderAxis, float cylinderRadius) |
| Tests whether point is intersecting cylinder.
|
|
static proto bool | IntersectionSphereAABB (vector origin, float radius, vector mins, vector maxs) |
| Tests whether sphere is intersecting AABB.
|
|
static proto bool | IntersectionBoxBox (vector mins1, vector maxs1, vector mins2, vector maxs2) |
| Returns true , when bounding boxes intersect.
|
|
static proto void | DirectionAndUpMatrix (vector dir, vector up, out vector mat[4]) |
| Creates rotation matrix from direction and up vector.
|
|
static proto void | MatrixMultiply3 (vector mat0[3], vector mat1[3], out vector res[3]) |
| Transforms rotation matrix.
|
|
static proto void | MatrixMultiply4 (vector mat0[4], vector mat1[4], out vector res[4]) |
| Transforms matrix.
|
|
static proto void | MatrixGetInverse3 (vector mat[3], out vector res[3]) |
| Inverts matrix.
|
|
static proto void | MatrixGetInverse4 (vector mat[4], out vector res[4]) |
| Inverts matrix.
|
|
static proto void | MatrixInvMultiply3 (vector mat0[3], vector mat1[3], out vector res[3]) |
| Invert-transforms rotation matrix.
|
|
static proto void | MatrixInvMultiply4 (vector mat0[4], vector mat1[4], out vector res[4]) |
| Invert-transforms matrix.
|
|
static proto void | MatrixToQuat (vector mat[3], out float d[4]) |
| Converts rotation matrix to quaternion.
|
|
static proto vector | MatrixToAngles (vector mat[3]) |
| Returns angles of rotation matrix.
|
|
static proto float | MatrixToAnglesAndScale (vector mat[3], out vector angles) |
| Returns angles and scale of rotation matrix.
|
|
static proto void | MatrixFromForwardVec (vector forwardVec, out vector mat[3]) |
|
static proto void | MatrixFromUpVec (vector upVec, out vector mat[3]) |
|
static proto void | AnglesToMatrix (vector ang, out vector mat[3]) |
| Creates rotation matrix from angles (yaw, pitch, roll in degrees).
|
|
static proto void | MatrixIdentity4 (out vector mat[4]) |
| Creates identity matrix.
|
|
static proto void | MatrixIdentity3 (out vector mat[3]) |
| Creates identity matrix.
|
|
static proto void | MatrixCopy (vector matSrc[], out vector matDst[]) |
| Copy matrixes.
|
|
static proto void | MatrixNormalize (vector mat[]) |
| Normalize matrix.
|
|
static proto void | MatrixScale (vector mat[], float scale) |
| Scale matrix.
|
|
static proto void | QuatIdentity (out float q[4]) |
| Creates identity quaternion.
|
|
static proto void | QuatCopy (float s[4], out float d[4]) |
| Copies quaternion.
|
|
static proto void | QuatToMatrix (float q[4], out vector mat[3]) |
| Converts quaternion to rotation matrix.
|
|
static proto float | QuatNormalize (out float quat[4]) |
| Normalizes quaternion.
|
|
static proto void | QuatLerp (out float qout[4], float q1[4], float q2[4], float frac) |
| Linear interpolation between q1 and q2 with weight frac (0...1).
|
|
static proto void | QuatMultiply (out float qout[4], float q1[4], float q2[4]) |
| Multiplies quaternions.
|
|
static proto float | QuatAngle (float q1[4], float q2[4]) |
| Returns a float value equal to the angle between two quaternions.
|
|
static proto float | QuatDot (float q1[4], float q2[4]) |
| Returns a float value equal to the dot product of two quaternions.
|
|
static proto void | QuatRotateTowards (out float qout[4], float q1[4], float q2[4], float maxDegreesDelta) |
| Returns a quaternion qout that is rotated between quaternions q1 and q2 .
|
|
static proto float | QuatNorm (float quat[4]) |
| Returns the norm of a quaternion.
|
|
static proto float | QuatLength (float quat[4]) |
| Returns the magnitude of a quaternion.
|
|
static proto void | QuatInverse (out float qout[4], float q[4]) |
| Inverse quaternion.
|
|
static proto void | QuatScale (out float qout[4], float scale) |
| Multiply each part of quaternion by scalar.
|
|
static proto void | QuatConjugate (out float qout[4], float q[4]) |
| Conjugate quaternion.
|
|
static proto vector | QuatToAngles (float q[4]) |
| Returns Angles vector (yaw, pitch, roll) from quaternion.
|
|
static proto vector | Curve (ECurveType type, float param, notnull array< vector > points, array< float > knots=null) |
| Computes curve.
|
|
static proto vector | Curve3 (ECurveType type, float param, notnull Curve3 points, int curveIndex, array< float > knots=null) |
| Evaluates a single curve from multicurve object.
|
|
static proto void | TessellateBezierSpline (array< vector > points, array< vector > segmentPoints, float maxDistance, int maxPointsPerSegment, array< vector > outPoints) |
| Generates tessellation of a cubic, C0 Bezier spline.
|
|
static proto void | TessellateHermiteSpline (array< vector > points, array< vector > tangents, float maxDistance, int maxPointsPerSegment, array< vector > outPoints) |
| Generates tessellation of a cubic, C0 Hermite spline.
|
|
static proto int | PolyToTriangles (vector in[], int num, out int indices[]) |
| Convert polygon to triangles.
|
|
static proto float | PointLineSegmentDistanceSqr (vector point, vector v0, vector v1) |
| Calculates squared distance of point to a line segment given by points v0 and v1 .
|
|
static proto float | PointLineSegmentDistance (vector point, vector v0, vector v1) |
| Calculates distance of point to a line segment given by points v0 and v1 .
|
|
static proto float | PointLineDistance (vector point, vector pointOnLine, vector dirVector) |
| Calculates distance of point to a parametric line given by a point on line and direction vector.
|
|
static proto bool | IntersectionLineSegments (vector p11, vector p12, vector p21, vector p22) |
| Determines whether two line segments intersect or not.
|
|