Public Member Functions | |
| Vector3d | __call__ (self, ConstVector3d p) |
| __init__ (self, *args, **kwargs) | |
| Quaterniond | __neg__ (self) |
| float | angle (self) |
| Vector3d | axis (self) |
| Quaterniond | conjugate (self) |
| Vector3d | im (self) |
| Quaterniond | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| Quaterniond | normalized (self) |
| float | a (self) |
| float | b (self) |
| float | c (self) |
| float | d (self) |
Static Public Member Functions | |
| Quaterniond | lerp (ConstQuaterniond q0, ConstQuaterniond q1, float t) |
| Quaterniond | slerp (ConstQuaterniond q0, ConstQuaterniond q1, float t) |
| Matrix3d | slerp (ConstMatrix3d m0, ConstMatrix3d m1, float t) |
| AffineXf3d | slerp (ConstAffineXf3d xf0, ConstAffineXf3d xf1, float t, ConstVector3d p=...) |
Static Protected Attributes | |
| typing | _offsetof_a = 0 |
| typing | _offsetof_b = 8 |
| typing | _offsetof_c = 16 |
| typing | _offsetof_d = 24 |
Generated from: MR::Quaterniond Represents a quaternion following the notations from https://en.wikipedia.org/wiki/Quaternion
| mrmeshpy.ConstQuaterniond.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstQuaterniond) -> None 2. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, a: float, b: float, c: float, d: float) -> None 3. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, axis: meshlib.mrmeshpy.ConstVector3d, angle: float) -> None \\related Quaternion 4. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, real: float, im: meshlib.mrmeshpy.ConstVector3d) -> None 5. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, m: meshlib.mrmeshpy.ConstMatrix3d) -> None 6. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, from_: meshlib.mrmeshpy.ConstVector3d, to: meshlib.mrmeshpy.ConstVector3d) -> None finds shorter arc rotation quaternion from one vector to another 7. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, arg0: meshlib.mrmeshpy.ConstQuaterniond) -> None Implicit copy constructor. 8. __init__(self: meshlib.mrmeshpy.ConstQuaterniond, : meshlib.mrmeshpy.ConstQuaterniond) -> None
| Vector3d mrmeshpy.ConstQuaterniond.__call__ | ( | self, | |
| ConstVector3d | p ) |
for unit quaternion returns the rotation of point p, which is faster to compute for single point; for multiple points it is faster to create matrix representation and apply it to the points
| Quaterniond mrmeshpy.ConstQuaterniond.__neg__ | ( | self | ) |
returns quaternion representing the same rotation, using the opposite rotation direction and opposite angle
| float mrmeshpy.ConstQuaterniond.a | ( | self | ) |
real part of the quaternion
Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.
| float mrmeshpy.ConstQuaterniond.angle | ( | self | ) |
returns angle of rotation encoded in this quaternion
| Vector3d mrmeshpy.ConstQuaterniond.axis | ( | self | ) |
returns axis of rotation encoded in this quaternion
| float mrmeshpy.ConstQuaterniond.b | ( | self | ) |
imaginary part: b*i + c*j + d*k
Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.
| float mrmeshpy.ConstQuaterniond.c | ( | self | ) |
imaginary part: b*i + c*j + d*k
Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.
| Quaterniond mrmeshpy.ConstQuaterniond.conjugate | ( | self | ) |
computes conjugate quaternion, which for unit quaternions encodes the opposite rotation
| float mrmeshpy.ConstQuaterniond.d | ( | self | ) |
imaginary part: b*i + c*j + d*k
Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.
| Vector3d mrmeshpy.ConstQuaterniond.im | ( | self | ) |
returns imaginary part of the quaternion as a vector
| Quaterniond mrmeshpy.ConstQuaterniond.inverse | ( | self | ) |
computes reciprocal quaternion
|
static |
given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion
| float mrmeshpy.ConstQuaterniond.norm | ( | self | ) |
| Quaterniond mrmeshpy.ConstQuaterniond.normalized | ( | self | ) |
| float mrmeshpy.ConstQuaterniond.normSq | ( | self | ) |
|
static |
given t in [0,1] and rigid transformations, interpolates them spherically and produces another rigid transformation; p is the only point that will have straight line movement during interpolation
|
static |
given t in [0,1] and two rotation matrices, interpolates them spherically and produces another rotation matrix
|
static |
given t in [0,1] and two unit quaternions, interpolates them spherically and produces another unit quaternion
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |