MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstQuaternionf:

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

Detailed Description

Generated from:  MR::Quaternionf

Represents a quaternion following the notations from
https://en.wikipedia.org/wiki/Quaternion

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __call__()

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

◆ __neg__()

Quaternionf mrmeshpy.ConstQuaternionf.__neg__ ( self)
returns quaternion representing the same rotation, using the opposite rotation direction and opposite angle

◆ a()

float mrmeshpy.ConstQuaternionf.a ( self)
real part of the quaternion

Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.

◆ angle()

float mrmeshpy.ConstQuaternionf.angle ( self)
returns angle of rotation encoded in this quaternion

◆ axis()

Vector3f mrmeshpy.ConstQuaternionf.axis ( self)
returns axis of rotation encoded in this quaternion

◆ b()

float mrmeshpy.ConstQuaternionf.b ( self)
imaginary part: b*i + c*j + d*k

Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.

◆ c()

float mrmeshpy.ConstQuaternionf.c ( self)
imaginary part: b*i + c*j + d*k

Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.

◆ conjugate()

Quaternionf mrmeshpy.ConstQuaternionf.conjugate ( self)
computes conjugate quaternion, which for unit quaternions encodes the opposite rotation

◆ d()

float mrmeshpy.ConstQuaternionf.d ( self)
imaginary part: b*i + c*j + d*k

Reimplemented in mrmeshpy.Quaternionf, and mrmeshpy.Quaternionf.

◆ im()

Vector3f mrmeshpy.ConstQuaternionf.im ( self)
returns imaginary part of the quaternion as a vector

◆ inverse()

Quaternionf mrmeshpy.ConstQuaternionf.inverse ( self)
computes reciprocal quaternion

◆ lerp()

Quaternionf mrmeshpy.ConstQuaternionf.lerp ( ConstQuaternionf q0,
ConstQuaternionf q1,
float t )
static
given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion

◆ norm()

float mrmeshpy.ConstQuaternionf.norm ( self)

◆ normalized()

Quaternionf mrmeshpy.ConstQuaternionf.normalized ( self)

◆ normSq()

float mrmeshpy.ConstQuaternionf.normSq ( self)

◆ slerp() [1/3]

AffineXf3f mrmeshpy.ConstQuaternionf.slerp ( ConstAffineXf3f xf0,
ConstAffineXf3f xf1,
float t,
ConstVector3f p = ... )
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

◆ slerp() [2/3]

Matrix3f mrmeshpy.ConstQuaternionf.slerp ( ConstMatrix3f m0,
ConstMatrix3f m1,
float t )
static
given t in [0,1] and two rotation matrices, interpolates them spherically and produces another rotation matrix

◆ slerp() [3/3]

Quaternionf mrmeshpy.ConstQuaternionf.slerp ( ConstQuaternionf q0,
ConstQuaternionf q1,
float t )
static
given t in [0,1] and two unit quaternions, interpolates them spherically and produces another unit quaternion

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstQuaternionf._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstQuaternionf._offsetof_b = 4
staticprotected

◆ _offsetof_c

typing mrmeshpy.ConstQuaternionf._offsetof_c = 8
staticprotected

◆ _offsetof_d

typing mrmeshpy.ConstQuaternionf._offsetof_d = 12
staticprotected

The documentation for this class was generated from the following file: