RenderWare V2.1

Previous Page Index Next Page

RwReal

RwDotProduct(RwV3d *a, RwV3d *b);

Description

Calculates the dot product of two vectors.

Arguments

a Pointer to the left vector.

b Pointer to the right vector.

Return Value

The dot product. Errors can be checked for using RwGetError().

Comments

The answer is effectively meaningful only when the vectors are normalized (unit length).

See Also

RwAddVector()

RwCrossProduct()

RwGetError()

RwNormalize()

RwScaleVector()

RwSubtractVector()

RwTransformVector()