Public Member Functions | |
| Vector3f | __call__ (self, ConstVector3f p) |
| __init__ (self, *args, **kwargs) | |
| Quaternionf | __neg__ (self) |
| float | angle (self) |
| Vector3f | axis (self) |
| Quaternionf | conjugate (self) |
| Vector3f | im (self) |
| Quaternionf | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| Quaternionf | normalized (self) |
| float | a (self) |
| float | b (self) |
| float | c (self) |
| float | d (self) |
Static Public Member Functions | |
| Quaternionf | lerp (ConstQuaternionf q0, ConstQuaternionf q1, float t) |
| Quaternionf | slerp (ConstQuaternionf q0, ConstQuaternionf q1, float t) |
| Matrix3f | slerp (ConstMatrix3f m0, ConstMatrix3f m1, float t) |
| AffineXf3f | slerp (ConstAffineXf3f xf0, ConstAffineXf3f xf1, float t, ConstVector3f p=...) |
Static Protected Attributes | |
| typing | _offsetof_a = 0 |
| typing | _offsetof_b = 4 |
| typing | _offsetof_c = 8 |
| typing | _offsetof_d = 12 |
Generated from: MR::Quaternionf Represents a quaternion following the notations from https://en.wikipedia.org/wiki/Quaternion
| mrmeshpy.ConstQuaternionf.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
__init__(*args, **kwargs) Overloaded function. 1. __init__(self: meshlib.mrmeshpy.ConstQuaternionf) -> None 2. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, a: float, b: float, c: float, d: float) -> None 3. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, axis: meshlib.mrmeshpy.ConstVector3f, angle: float) -> None \\related Quaternion 4. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, real: float, im: meshlib.mrmeshpy.ConstVector3f) -> None 5. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, m: meshlib.mrmeshpy.ConstMatrix3f) -> None 6. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, from_: meshlib.mrmeshpy.ConstVector3f, to: meshlib.mrmeshpy.ConstVector3f) -> None finds shorter arc rotation quaternion from one vector to another 7. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, arg0: meshlib.mrmeshpy.ConstQuaternionf) -> None Implicit copy constructor. 8. __init__(self: meshlib.mrmeshpy.ConstQuaternionf, : meshlib.mrmeshpy.ConstQuaternionf) -> None
| Vector3f mrmeshpy.ConstQuaternionf.__call__ | ( | self, | |
| ConstVector3f | 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
| Quaternionf mrmeshpy.ConstQuaternionf.__neg__ | ( | self | ) |
returns quaternion representing the same rotation, using the opposite rotation direction and opposite angle
| float mrmeshpy.ConstQuaternionf.a | ( | self | ) |
real part of the quaternion
Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.
| float mrmeshpy.ConstQuaternionf.angle | ( | self | ) |
returns angle of rotation encoded in this quaternion
| Vector3f mrmeshpy.ConstQuaternionf.axis | ( | self | ) |
returns axis of rotation encoded in this quaternion
| float mrmeshpy.ConstQuaternionf.b | ( | self | ) |
imaginary part: b*i + c*j + d*k
Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.
| float mrmeshpy.ConstQuaternionf.c | ( | self | ) |
imaginary part: b*i + c*j + d*k
Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.
| Quaternionf mrmeshpy.ConstQuaternionf.conjugate | ( | self | ) |
computes conjugate quaternion, which for unit quaternions encodes the opposite rotation
| float mrmeshpy.ConstQuaternionf.d | ( | self | ) |
imaginary part: b*i + c*j + d*k
Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.
| Vector3f mrmeshpy.ConstQuaternionf.im | ( | self | ) |
returns imaginary part of the quaternion as a vector
| Quaternionf mrmeshpy.ConstQuaternionf.inverse | ( | self | ) |
computes reciprocal quaternion
|
static |
given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion
| float mrmeshpy.ConstQuaternionf.norm | ( | self | ) |
| Quaternionf mrmeshpy.ConstQuaternionf.normalized | ( | self | ) |
| float mrmeshpy.ConstQuaternionf.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 |