seong-hun / python-tutorials

0 stars 2 forks source link

Functional specification of Quaternion #2

Closed seong-hun closed 1 year ago

seong-hun commented 1 year ago
q1 = Quaternion([1, 0, 0, 0])
q2 = Quaternion([0, 1, 0, 0])

q = q1 * q2  # New quaternion

print(q)
print(q.inv())
print(q * q.inv())
print(q.norm())