Public Member Functions | |
Vector3f | __call__ (self, Vector3f p) |
Quaternionf | __imatmul__ (self, float s) |
None | __init__ (self) |
None | __init__ (self, float a, float b, float c, float d) |
None | __init__ (self, Vector3f axis, float angle) |
None | __init__ (self, float real, Vector3f im) |
None | __init__ (self, Matrix3f m) |
None | __init__ (self, Vector3f from_, Vector3f to) |
None | __init__ (self, Quaternionf arg0) |
Quaternionf | __itruediv__ (self, float s) |
Quaternionf | __neg__ (self) |
float | angle (self) |
Vector3f | axis (self) |
Quaternionf | conjugate (self) |
Vector3f | im (self) |
Quaternionf | inverse (self) |
float | norm (self) |
float | normSq (self) |
None | normalize (self) |
Quaternionf | 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 | |
Quaternionf | lerp (Quaternionf q0, Quaternionf q1, float t) |
Quaternionf | slerp (Quaternionf q0, Quaternionf q1, float t) |
Matrix3f | slerp (Matrix3f m0, Matrix3f m1, float t) |
AffineXf3f | slerp (AffineXf3f xf0, AffineXf3f xf1, float t, Vector3f p='MR::Vector3< float >{}') |
Protected Member Functions | |
Matrix3f | _convert_to_Matrix3_float (self) |
Generated from: MR::Quaternionf Aliases: Quaternion_float Represents a quaternion following the notations from https://en.wikipedia.org/wiki/Quaternion \\ingroup MathGroup
None meshlib.mrmeshpy.Quaternionf.__init__ | ( | self | ) |
None meshlib.mrmeshpy.Quaternionf.__init__ | ( | self, | |
float | a, | ||
float | b, | ||
float | c, | ||
float | d ) |
None meshlib.mrmeshpy.Quaternionf.__init__ | ( | self, | |
Vector3f | axis, | ||
float | angle ) |
\\related Quaternion \\{
None meshlib.mrmeshpy.Quaternionf.__init__ | ( | self, | |
float | real, | ||
Vector3f | im ) |
None meshlib.mrmeshpy.Quaternionf.__init__ | ( | self, | |
Matrix3f | m ) |
finds shorter arc rotation quaternion from one vector to another
None meshlib.mrmeshpy.Quaternionf.__init__ | ( | self, | |
Quaternionf | 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
Quaternionf meshlib.mrmeshpy.Quaternionf.__imatmul__ | ( | self, | |
float | s ) |
Quaternionf meshlib.mrmeshpy.Quaternionf.__itruediv__ | ( | self, | |
float | s ) |
Quaternionf meshlib.mrmeshpy.Quaternionf.__neg__ | ( | self | ) |
returns quaternion representing the same rotation, using the opposite rotation direction and opposite angle
|
protected |
converts this into 3x3 rotation matrix
float meshlib.mrmeshpy.Quaternionf.a | ( | self | ) |
real part of the quaternion
None meshlib.mrmeshpy.Quaternionf.a | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.Quaternionf.angle | ( | self | ) |
returns angle of rotation encoded in this quaternion
Vector3f meshlib.mrmeshpy.Quaternionf.axis | ( | self | ) |
returns axis of rotation encoded in this quaternion
float meshlib.mrmeshpy.Quaternionf.b | ( | self | ) |
imaginary part: b*i + c*j + d*k
None meshlib.mrmeshpy.Quaternionf.b | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.Quaternionf.c | ( | self | ) |
imaginary part: b*i + c*j + d*k
None meshlib.mrmeshpy.Quaternionf.c | ( | self, | |
float | arg1 ) |
Quaternionf meshlib.mrmeshpy.Quaternionf.conjugate | ( | self | ) |
computes conjugate quaternion, which for unit quaternions encodes the opposite rotation
float meshlib.mrmeshpy.Quaternionf.d | ( | self | ) |
imaginary part: b*i + c*j + d*k
None meshlib.mrmeshpy.Quaternionf.d | ( | self, | |
float | arg1 ) |
Vector3f meshlib.mrmeshpy.Quaternionf.im | ( | self | ) |
returns imaginary part of the quaternion as a vector
Quaternionf meshlib.mrmeshpy.Quaternionf.inverse | ( | self | ) |
computes reciprocal quaternion
|
static |
given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion
float meshlib.mrmeshpy.Quaternionf.norm | ( | self | ) |
None meshlib.mrmeshpy.Quaternionf.normalize | ( | self | ) |
scales this quaternion to make its norm unit
Quaternionf meshlib.mrmeshpy.Quaternionf.normalized | ( | self | ) |
float meshlib.mrmeshpy.Quaternionf.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
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