Data Structures |
|
struct | RwV3d |
Functions |
|
RwReal | RwV3dNormalize (RwV3d *out, const RwV3d *in) |
RwReal | RwV3dLength (const RwV3d *in) |
void | RwV3dAssign (RwV3d *target, const RwV3d *source) |
void | RwV3dAdd (RwV3d *out, const RwV3d *ina, const RwV3d *inb) |
void | RwV3dSub (RwV3d *out, const RwV3d *ina, const RwV3d *inb) |
void | RwV3dScale (RwV3d *out, const RwV3d *in, RwReal scalar) |
void | RwV3dIncrementScaled (RwV3d *out, const RwV3d *in, RwReal scalar) |
void | RwV3dNegate (RwV3d *out, const RwV3d *in) |
RwReal | RwV3dDotProduct (const RwV3d *ina, const RwV3d *inb) |
void | RwV3dCrossProduct (RwV3d *out, const RwV3d *ina, const RwV3d *inb) |
RwV3d * | RwV3dTransformPoints (RwV3d *pointsOut, const RwV3d *pointsIn, RwInt32 numPoints, const RwMatrix *matrix) |
RwV3d * | RwV3dTransformVectors (RwV3d *vectorsOut, const RwV3d *vectorsIn, RwInt32 numPoints, const RwMatrix *matrix) |
This is RenderWare's 3D vector object.
The API covers the 3D vector basics, including: addition, subtraction, cross and dot products, length determination, negation, normalization and more. It is primarily used in the context of RenderWare's 3D Immediate Mode API RwIm3D and the scene graph API Scene Management . It is also used to represent a 3D coordinate or point in other parts of the API, such as RwBBox.
|
RwV3dAdd is used to add together the specified 3D vectors. The result of the addition is placed in a third 3D vector.
|
|
RwV3dAssign is used to assign to the first 3D vectors the value of the second 3D vector.
|
|
RwV3dCrossProduct is used to calculate the cross product of the specified 3D vectors, in the order given. The result of the cross product is placed in a third 3D vector.
|
|
RwV3dDotProduct is used to calculate the scalar product of the specified 3D vectors.
|
|
RwV3dIncrementScaled multiplies the second 3D vector by the given scalar and increments the first 3D vector by this amount
|
|
RwV3dLength is used to calculate the length of the specified 3D vector.
|
|
RwV3dNegate negates the second 3D vector and returns the result in the first 3D vector.
|
|
RwV3dNormalize is used to normalize the specified 3D vector. The input and output arguments can point to the same 3D vector.
|
|
RwV3dScale is used to multiply the specified 3D vector by the given scalar. The result is placed in a second 3D vector.
|
|
RwV3dSub is used to subtract the specified 3D vectors. The second vector is subtracted from the first. The result of the subtraction is placed in a third 3D vector.
|
|
RwV3dTransformPoints uses the given matrix describing a transformation and applies it to the specified array of points. The results are then placed in another array (which may be the same array as the source).
|
|
RwV3dTransformVectors uses the given matrix describing a transformation and applies it to the specified array of vectors. The results are then placed in another array (which may be the same array as the source).
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |