Public Member Functions | |
| auto | convert_to_mr_matrix3f () const -> meshlib::Matrix3f |
| auto | assign_from_another (_other:&meshlib::Quaternionf) -> &mut meshlib::Quaternionf |
| auto | im () const -> meshlib::Vector3f |
| auto | angle () const -> f32 |
| auto | axis () const -> meshlib::Vector3f |
| auto | norm_sq () const -> f32 |
| auto | norm () const -> f32 |
| auto | op_neg () const -> meshlib::Owned< meshlib::Quaternionf > |
| void | normalize () |
| auto | normalized () const -> meshlib::Owned< meshlib::Quaternionf > |
| auto | conjugate () const -> meshlib::Owned< meshlib::Quaternionf > |
| auto | inverse () const -> meshlib::Owned< meshlib::Quaternionf > |
| auto | call (p:&meshlib::Vector3f) const -> meshlib::Vector3f |
| auto | mul_assign (s:f32) -> &mut meshlib::Quaternionf |
| auto | div_assign (s:f32) -> &mut meshlib::Quaternionf |
| auto | a () const -> &f32 |
| auto | a_mut () -> &mut f32 |
| void | set_a (value:f32) |
| auto | b () const -> &f32 |
| auto | b_mut () -> &mut f32 |
| void | set_b (value:f32) |
| auto | c () const -> &f32 |
| auto | c_mut () -> &mut f32 |
| void | set_c (value:f32) |
| auto | d () const -> &f32 |
| auto | d_mut () -> &mut f32 |
| void | set_d (value:f32) |
Related Symbols | |
(Note that these are not member symbols.) | |
| static auto | construct_2_const_mr_vector3f_ref_float (axis:&meshlib::Vector3f, angle:f32) -> meshlib::Owned< meshlib::Quaternionf > |
Represents a quaternion following the notations from https://en.wikipedia.org/wiki/Quaternion Generated from class MR::Quaternionf.
Generated from class MR::Quaternionf. Heap-allocated instances are held in Owned<Quaternionf>.
| auto meshlib::Quaternionf::a | ( | ) | const -> &f32 |
< real part of the quaternion Returns a pointer to a member variable of class MR::Quaternionf named a.
Calls MR_Quaternionf_Get_a(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::a_mut | ( | ) | -> &mut f32 |
< real part of the quaternion Returns a mutable pointer to a member variable of class MR::Quaternionf named a.
Calls MR_Quaternionf_GetMutable_a(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::angle | ( | ) | const -> f32 |
returns angle of rotation encoded in this quaternion Generated from method MR::Quaternionf::angle.
Calls MR_Quaternionf_angle().
| auto meshlib::Quaternionf::assign_from_another | ( | _other:&meshlib::Quaternionf | ) | -> &mut meshlib::Quaternionf |
Generated from method MR::Quaternionf::operator=.
Calls MR_Quaternionf_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::Quaternionf::axis | ( | ) | const -> meshlib::Vector3f |
returns axis of rotation encoded in this quaternion Generated from method MR::Quaternionf::axis.
Calls MR_Quaternionf_axis().
| auto meshlib::Quaternionf::b | ( | ) | const -> &f32 |
< imaginary part: b*i + c*j + d*k Returns a pointer to a member variable of class MR::Quaternionf named b.
Calls MR_Quaternionf_Get_b(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::b_mut | ( | ) | -> &mut f32 |
< imaginary part: b*i + c*j + d*k Returns a mutable pointer to a member variable of class MR::Quaternionf named b.
Calls MR_Quaternionf_GetMutable_b(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::c | ( | ) | const -> &f32 |
< imaginary part: b*i + c*j + d*k Returns a pointer to a member variable of class MR::Quaternionf named c.
Calls MR_Quaternionf_Get_c(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::c_mut | ( | ) | -> &mut f32 |
< imaginary part: b*i + c*j + d*k Returns a mutable pointer to a member variable of class MR::Quaternionf named c.
Calls MR_Quaternionf_GetMutable_c(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::call | ( | p:&meshlib::Vector3f | ) | const -> meshlib::Vector3f |
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 Generated from method MR::Quaternionf::operator().
Calls MR_Quaternionf_call().
| auto meshlib::Quaternionf::conjugate | ( | ) | const -> meshlib::Owned< meshlib::Quaternionf > |
computes conjugate quaternion, which for unit quaternions encodes the opposite rotation Generated from method MR::Quaternionf::conjugate.
Calls MR_Quaternionf_conjugate().
|
static |
Generated from constructor MR::Quaternionf::Quaternionf.
Calls MR_Quaternionf_Construct_1(). The reference to the parameter m might be preserved in the constructed object.
|
static |
finds shorter arc rotation quaternion from one vector to another Generated from constructor MR::Quaternionf::Quaternionf.
Calls MR_Quaternionf_Construct_2_const_MR_Vector3f_ref_MR_Vector3f(). The reference to the parameter from might be preserved in the constructed object. The reference to the parameter to might be preserved in the constructed object.
|
static |
Generated from constructor MR::Quaternionf::Quaternionf.
Calls MR_Quaternionf_Construct_2_float(). The reference to the parameter im might be preserved in the constructed object.
|
static |
Generated from constructor MR::Quaternionf::Quaternionf.
Calls MR_Quaternionf_Construct_4().
|
static |
Generated from constructor MR::Quaternionf::Quaternionf.
Calls MR_Quaternionf_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Quaternionf::convert_to_mr_matrix3f | ( | ) | const -> meshlib::Matrix3f |
converts this into 3x3 rotation matrix Generated from conversion operator MR::Quaternionf::operator MR::Matrix3f.
Calls MR_Quaternionf_ConvertTo_MR_Matrix3f().
| auto meshlib::Quaternionf::d | ( | ) | const -> &f32 |
< imaginary part: b*i + c*j + d*k Returns a pointer to a member variable of class MR::Quaternionf named d.
Calls MR_Quaternionf_Get_d(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::d_mut | ( | ) | -> &mut f32 |
< imaginary part: b*i + c*j + d*k Returns a mutable pointer to a member variable of class MR::Quaternionf named d.
Calls MR_Quaternionf_GetMutable_d(). The reference to this object might be preserved as the return value.
| auto meshlib::Quaternionf::div_assign | ( | s:f32 | ) | -> &mut meshlib::Quaternionf |
Generated from method MR::Quaternionf::operator/=.
Calls MR_Quaternionf_div_assign(). The reference to this object might be preserved in the return value.
| auto meshlib::Quaternionf::im | ( | ) | const -> meshlib::Vector3f |
returns imaginary part of the quaternion as a vector Generated from method MR::Quaternionf::im.
Calls MR_Quaternionf_im().
| auto meshlib::Quaternionf::inverse | ( | ) | const -> meshlib::Owned< meshlib::Quaternionf > |
computes reciprocal quaternion Generated from method MR::Quaternionf::inverse.
Calls MR_Quaternionf_inverse().
|
static |
given t in [0,1], interpolates linearly two quaternions giving in general not-unit quaternion Generated from method MR::Quaternionf::lerp.
Calls MR_Quaternionf_lerp().
| auto meshlib::Quaternionf::mul_assign | ( | s:f32 | ) | -> &mut meshlib::Quaternionf |
Generated from method MR::Quaternionf::operator*=.
Calls MR_Quaternionf_mul_assign(). The reference to this object might be preserved in the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Quaternionf_DefaultConstruct().
| auto meshlib::Quaternionf::norm | ( | ) | const -> f32 |
Generated from method MR::Quaternionf::norm.
Calls MR_Quaternionf_norm().
| auto meshlib::Quaternionf::norm_sq | ( | ) | const -> f32 |
Generated from method MR::Quaternionf::normSq.
Calls MR_Quaternionf_normSq().
| void meshlib::Quaternionf::normalize | ( | ) |
scales this quaternion to make its norm unit Generated from method MR::Quaternionf::normalize.
Calls MR_Quaternionf_normalize().
| auto meshlib::Quaternionf::normalized | ( | ) | const -> meshlib::Owned< meshlib::Quaternionf > |
Generated from method MR::Quaternionf::normalized.
Calls MR_Quaternionf_normalized().
| auto meshlib::Quaternionf::op_neg | ( | ) | const -> meshlib::Owned< meshlib::Quaternionf > |
returns quaternion representing the same rotation, using the opposite rotation direction and opposite angle Generated from method MR::Quaternionf::operator-.
Calls MR_neg_MR_Quaternionf().
| void meshlib::Quaternionf::set_a | ( | value:f32 | ) |
< real part of the quaternion Modifies a member variable of class MR::Quaternionf named a.
Calls MR_Quaternionf_Set_a().
| void meshlib::Quaternionf::set_b | ( | value:f32 | ) |
< imaginary part: b*i + c*j + d*k Modifies a member variable of class MR::Quaternionf named b.
Calls MR_Quaternionf_Set_b().
| void meshlib::Quaternionf::set_c | ( | value:f32 | ) |
< imaginary part: b*i + c*j + d*k Modifies a member variable of class MR::Quaternionf named c.
Calls MR_Quaternionf_Set_c().
| void meshlib::Quaternionf::set_d | ( | value:f32 | ) |
< imaginary part: b*i + c*j + d*k Modifies a member variable of class MR::Quaternionf named d.
Calls MR_Quaternionf_Set_d().
|
static |
given t in [0,1] and two rotation matrices, interpolates them spherically and produces another rotation matrix Generated from method MR::Quaternionf::slerp.
Calls MR_Quaternionf_slerp_3_MR_Matrix3f().
|
static |
given t in [0,1] and two unit quaternions, interpolates them spherically and produces another unit quaternion Generated from method MR::Quaternionf::slerp.
Calls MR_Quaternionf_slerp_3_MR_Quaternionf().
|
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 Generated from method MR::Quaternionf::slerp.
Calls MR_Quaternionf_slerp_4().
|
Generated from constructor MR::Quaternionf::Quaternionf.
Calls MR_Quaternionf_Construct_2_const_MR_Vector3f_ref_float(). The reference to the parameter axis might be preserved in the constructed object.