from_vector3
Specification
Location | Author | Maintained by |
---|---|---|
isl/math/quaternion.py | Kenny Erleben | DIKU |
Purpose & Params
The purpose of this module is to convert a vector of length 3 to a quaternion.
Example
import numpy as np
quat = quat.from_vector3(np.array([1,2,3]))
print(quat)
output:
array([0.0, 1.0, 2.0, 3.0])