make_orthonomal_vectors
Specification
Location | Author | Maintained by |
---|---|---|
isl/math/vector3.py | Kenny Erleben | DIKU |
Purpose & Params
The purpose of this function is the create the tanget and binormal of the
unit vector n
[0.,0.,0.]
:return:
tangent vector, numpy float64 array
binomal vector, numpy float64 array
n vector, numpy float64 array
Example
norm_vector = vec3.unit(vector)
tangent, binormal, n = vec3.make_orthonormal_vectors(norm_vector)
expected = n
actual = np.cross(tangent, binormal)
print(actual == expected)
output:
true