Functions | |
HC_BOOLEAN | Compute_Normalized_Vector (const HC_POINT *vector, HC_POINT *out_vector) |
HC_BOOLEAN Compute_Normalized_Vector | ( | const HC_POINT * | vector, |
HC_POINT * | out_vector | ||
) |
vector | - Input 3D vector. |
out_vector | - Output 3D vector returned to the caller. Can point to the same place as vector . |
Compute_Normalized_Vector() takes a 3-D vector and divides by its length. If the vector is all zeroes, false will be returned.