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

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

Detailed Description

Generated from:  MR::Quaterniond

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

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ __call__()

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

◆ __neg__()

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

◆ a()

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

Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.

◆ angle()

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

◆ axis()

Vector3d mrmeshpy.ConstQuaterniond.axis ( self)
returns axis of rotation encoded in this quaternion

◆ b()

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

Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.

◆ c()

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

Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.

◆ conjugate()

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

◆ d()

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

Reimplemented in mrmeshpy.Quaterniond, and mrmeshpy.Quaterniond.

◆ im()

Vector3d mrmeshpy.ConstQuaterniond.im ( self)
returns imaginary part of the quaternion as a vector

◆ inverse()

Quaterniond mrmeshpy.ConstQuaterniond.inverse ( self)
computes reciprocal quaternion

◆ lerp()

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

◆ norm()

float mrmeshpy.ConstQuaterniond.norm ( self)

◆ normalized()

Quaterniond mrmeshpy.ConstQuaterniond.normalized ( self)

◆ normSq()

float mrmeshpy.ConstQuaterniond.normSq ( self)

◆ slerp() [1/3]

AffineXf3d mrmeshpy.ConstQuaterniond.slerp ( ConstAffineXf3d xf0,
ConstAffineXf3d xf1,
float t,
ConstVector3d 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]

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

◆ slerp() [3/3]

Quaterniond mrmeshpy.ConstQuaterniond.slerp ( ConstQuaterniond q0,
ConstQuaterniond 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.ConstQuaterniond._offsetof_a = 0
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstQuaterniond._offsetof_b = 8
staticprotected

◆ _offsetof_c

typing mrmeshpy.ConstQuaterniond._offsetof_c = 16
staticprotected

◆ _offsetof_d

typing mrmeshpy.ConstQuaterniond._offsetof_d = 24
staticprotected

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