Compute_Normalized_Vector
Functions | |
HC_BOOLEAN | Compute_Normalized_Vector (const HC_POINT *vector, HC_POINT *out_vector) |
HC_BOOLEAN | DCompute_Normalized_Vector (const HC_DVECTOR *vector, HC_DVECTOR *out_vector) |
Similar to Compute_Normalized_Vector, but operates on double-precision data. More... | |
Detailed Description
Function Documentation
◆ Compute_Normalized_Vector()
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
◆ DCompute_Normalized_Vector()
HC_BOOLEAN DCompute_Normalized_Vector | ( | const HC_DVECTOR * | vector, |
HC_DVECTOR * | out_vector | ||
) |
Similar to Compute_Normalized_Vector, but operates on double-precision data.
- Parameters
-
vector - Input 3D vector. out_vector - Output 3D vector returned to the caller. Can point to the same place as input vector.
- Returns
- success