MCPcopy Create free account
hub / github.com/MotrixLab/insactor / quat_normalize

Function quat_normalize

diffmimic/utils/quaternion.py:61–66  ·  view source on GitHub ↗

Construct 3D rotation from quaternion (the quaternion needs not to be normalized).

(q)

Source from the content-addressed store, hash-verified

59 return jp.concatenate([-x[..., :3], x[..., 3:]], axis=-1)
60
61def quat_normalize(q):
62 """
63 Construct 3D rotation from quaternion (the quaternion needs not to be normalized).
64 """
65 q = quat_unit(quat_pos(q)) # normalized to positive and unit quaternion
66 return q
67
68def quat_inverse(x):
69 """

Callers 4

quat_mul_normFunction · 0.70
quat_identityFunction · 0.70
convert_to_localFunction · 0.50
convert_pair_to_localFunction · 0.50

Calls 2

quat_unitFunction · 0.70
quat_posFunction · 0.70

Tested by

no test coverage detected