Brief Index      Full Index      Events Index      I.M. Reference

Compute_Normalized_Vector

Functions

HC_BOOLEAN Compute_Normalized_Vector (const HC_POINT *vector, HC_POINT *out_vector)

Function Documentation

HC_BOOLEAN Compute_Normalized_Vector ( const HC_POINT *  vector,
HC_POINT *  out_vector 
)
Parameters:
vector- Input 3D vector.
out_vector- Output 3D vector returned to the caller. Can point to the same place as vector .
Returns:
success

DETAILS

Compute_Normalized_Vector() takes a 3-D vector and divides by its length. If the vector is all zeroes, false will be returned.

NOTES

RESTRICTIONS

See also:
Compute_Coordinates, Compute_Transform, Set_Modelling_Matrix, Show_Device_Info

Brief Index      Full Index      Events Index      I.M. Reference