Public Member Functions | |
| Vector3d | __call__ (self, Vector3d p) |
| Quaterniond | __imatmul__ (self, float s) |
| None | __init__ (self) |
| None | __init__ (self, float a, float b, float c, float d) |
| None | __init__ (self, Vector3d axis, float angle) |
| None | __init__ (self, float real, Vector3d im) |
| None | __init__ (self, Matrix3d m) |
| None | __init__ (self, Vector3d from_, Vector3d to) |
| None | __init__ (self, Quaterniond arg0) |
| Quaterniond | __itruediv__ (self, float s) |
| Quaterniond | __neg__ (self) |
| float | angle (self) |
| Vector3d | axis (self) |
| Quaterniond | conjugate (self) |
| Vector3d | im (self) |
| Quaterniond | inverse (self) |
| float | norm (self) |
| float | normSq (self) |
| None | normalize (self) |
| Quaterniond | normalized (self) |
| float | a (self) |
| None | a (self, float arg1) |
| float | b (self) |
| None | b (self, float arg1) |
| float | c (self) |
| None | c (self, float arg1) |
| float | d (self) |
| None | d (self, float arg1) |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
| Quaterniond | lerp (Quaterniond q0, Quaterniond q1, float t) |
| Quaterniond | operator (*args, **kwargs) |
| Quaterniond | operator (*args, **kwargs) |
| Quaterniond | slerp (Quaterniond q0, Quaterniond q1, float t) |
| Matrix3d | slerp (Matrix3d m0, Matrix3d m1, float t) |
| AffineXf3d | slerp (AffineXf3d xf0, AffineXf3d xf1, float t, Vector3d 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
|
static |
| None mrmeshpy.Quaterniond.__init__ | ( | self | ) |
| None mrmeshpy.Quaterniond.__init__ | ( | self, | |
| float | a, | ||
| float | b, | ||
| float | c, | ||
| float | d ) |
| None mrmeshpy.Quaterniond.__init__ | ( | self, | |
| Vector3d | axis, | ||
| float | angle ) |
\\related Quaternion
| None mrmeshpy.Quaterniond.__init__ | ( | self, | |
| float | real, | ||
| Vector3d | im ) |
| None mrmeshpy.Quaterniond.__init__ | ( | self, | |
| Matrix3d | m ) |
finds shorter arc rotation quaternion from one vector to another
| None mrmeshpy.Quaterniond.__init__ | ( | self, | |
| Quaterniond | arg0 ) |
Implicit copy constructor.
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.Quaterniond.__imatmul__ | ( | self, | |
| float | s ) |
| Quaterniond mrmeshpy.Quaterniond.__itruediv__ | ( | self, | |
| float | s ) |
| Quaterniond mrmeshpy.Quaterniond.__neg__ | ( | self | ) |
returns quaternion representing the same rotation, using the opposite rotation direction and opposite angle
| float mrmeshpy.Quaterniond.a | ( | self | ) |
real part of the quaternion
| None mrmeshpy.Quaterniond.a | ( | self, | |
| float | arg1 ) |
| float mrmeshpy.Quaterniond.angle | ( | self | ) |
returns angle of rotation encoded in this quaternion
| Vector3d mrmeshpy.Quaterniond.axis | ( | self | ) |
returns axis of rotation encoded in this quaternion
| float mrmeshpy.Quaterniond.b | ( | self | ) |
imaginary part: b*i + c*j + d*k
| None mrmeshpy.Quaterniond.b | ( | self, | |
| float | arg1 ) |
| float mrmeshpy.Quaterniond.c | ( | self | ) |
imaginary part: b*i + c*j + d*k
| None mrmeshpy.Quaterniond.c | ( | self, | |
| float | arg1 ) |
| Quaterniond mrmeshpy.Quaterniond.conjugate | ( | self | ) |
computes conjugate quaternion, which for unit quaternions encodes the opposite rotation
| float mrmeshpy.Quaterniond.d | ( | self | ) |
imaginary part: b*i + c*j + d*k
| None mrmeshpy.Quaterniond.d | ( | self, | |
| float | arg1 ) |
| Vector3d mrmeshpy.Quaterniond.im | ( | self | ) |
returns imaginary part of the quaternion as a vector
| Quaterniond mrmeshpy.Quaterniond.inverse | ( | self | ) |
computes reciprocal quaternion
|
static |
given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion
| float mrmeshpy.Quaterniond.norm | ( | self | ) |
| None mrmeshpy.Quaterniond.normalize | ( | self | ) |
scales this quaternion to make its norm unit
| Quaterniond mrmeshpy.Quaterniond.normalized | ( | self | ) |
| float mrmeshpy.Quaterniond.normSq | ( | self | ) |
|
static |
|
static |
|
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
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 |