div#

Quaternion.div(other)#

Performs quaternion division with another quaternion or compatible value.

Parameters:
otherQuaternion, List, tuple, float, or int

The value to divide with this quaternion. It can be another Quaternion or a sequence that can be interpreted as one. It can also be a scalar value (float or int).

Returns:
Quaternion

A new quaternion representing the division of this quaternion and the given value.

Examples

>>> from ansys.aedt.core.generic.quaternion import Quaternion
>>> q1 = Quaternion(1, 2, 3, 4)
>>> q2 = Quaternion(1, -1, 1, 2)
>>> q1.div(q2)
Quaternion(10/7, 1/7, 10/7, -3/7)
>>> q1.div(2)
Quaternion(0.5, 1, 1.5, 2)