Struct qt_gui::QQuaternion

source ·
#[repr(C)]
pub struct QQuaternion { /* private fields */ }
Expand description

The QQuaternion class represents a quaternion consisting of a vector and scalar.

C++ class: QQuaternion.

C++ documentation:

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Quaternions are used to represent rotations in 3D space, and consist of a 3D rotation axis specified by the x, y, and z coordinates, and a scalar representing the rotation angle.

Implementations§

source§

impl QQuaternion

source

pub unsafe fn add_assign( &self, quaternion: impl CastInto<Ref<QQuaternion>> ) -> Ref<QQuaternion>

Adds the given quaternion to this quaternion and returns a reference to this quaternion.

Calls C++ function: QQuaternion& QQuaternion::operator+=(const QQuaternion& quaternion).

C++ documentation:

Adds the given quaternion to this quaternion and returns a reference to this quaternion.

See also operator-=().

source

pub unsafe fn conjugate(&self) -> CppBox<QQuaternion>

Use conjugated() instead.

Calls C++ function: QQuaternion QQuaternion::conjugate() const.

C++ documentation:

Use conjugated() instead.

source

pub unsafe fn conjugated(&self) -> CppBox<QQuaternion>

Returns the conjugate of this quaternion, which is (-x, -y, -z, scalar).

Calls C++ function: QQuaternion QQuaternion::conjugated() const.

C++ documentation:

Returns the conjugate of this quaternion, which is (-x, -y, -z, scalar).

This function was introduced in Qt 5.5.

source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QQuaternion>> ) -> Ref<QQuaternion>

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Calls C++ function: QQuaternion& QQuaternion::operator=(const QQuaternion& other).

C++ documentation:

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Quaternions are used to represent rotations in 3D space, and consist of a 3D rotation axis specified by the x, y, and z coordinates, and a scalar representing the rotation angle.

source

pub unsafe fn div_assign(&self, divisor: c_float) -> Ref<QQuaternion>

Divides this quaternion's components by the given divisor, and returns a reference to this quaternion.

Calls C++ function: QQuaternion& QQuaternion::operator/=(float divisor).

C++ documentation:

Divides this quaternion’s components by the given divisor, and returns a reference to this quaternion.

See also operator*=().

source

pub unsafe fn dot_product( q1: impl CastInto<Ref<QQuaternion>>, q2: impl CastInto<Ref<QQuaternion>> ) -> c_float

Returns the dot product of q1 and q2.

Calls C++ function: static float QQuaternion::dotProduct(const QQuaternion& q1, const QQuaternion& q2).

C++ documentation:

Returns the dot product of q1 and q2.

This function was introduced in Qt 5.5.

See also length().

source

pub unsafe fn from_axes( x_axis: impl CastInto<Ref<QVector3D>>, y_axis: impl CastInto<Ref<QVector3D>>, z_axis: impl CastInto<Ref<QVector3D>> ) -> CppBox<QQuaternion>

Constructs the quaternion using 3 axes (xAxis, yAxis, zAxis).

Calls C++ function: static QQuaternion QQuaternion::fromAxes(const QVector3D& xAxis, const QVector3D& yAxis, const QVector3D& zAxis).

C++ documentation:

Constructs the quaternion using 3 axes (xAxis, yAxis, zAxis).

Note: The axes are assumed to be orthonormal.

This function was introduced in Qt 5.5.

See also getAxes() and fromRotationMatrix().

source

pub unsafe fn from_axis_and_angle_2a( axis: impl CastInto<Ref<QVector3D>>, angle: c_float ) -> CppBox<QQuaternion>

Creates a normalized quaternion that corresponds to rotating through angle degrees about the specified 3D axis.

Calls C++ function: static QQuaternion QQuaternion::fromAxisAndAngle(const QVector3D& axis, float angle).

C++ documentation:

Creates a normalized quaternion that corresponds to rotating through angle degrees about the specified 3D axis.

See also getAxisAndAngle().

source

pub unsafe fn from_axis_and_angle_4a( x: c_float, y: c_float, z: c_float, angle: c_float ) -> CppBox<QQuaternion>

Creates a normalized quaternion that corresponds to rotating through angle degrees about the 3D axis (x, y, z).

Calls C++ function: static QQuaternion QQuaternion::fromAxisAndAngle(float x, float y, float z, float angle).

C++ documentation:

Creates a normalized quaternion that corresponds to rotating through angle degrees about the 3D axis (x, y, z).

See also getAxisAndAngle().

source

pub unsafe fn from_direction( direction: impl CastInto<Ref<QVector3D>>, up: impl CastInto<Ref<QVector3D>> ) -> CppBox<QQuaternion>

Constructs the quaternion using specified forward direction direction and upward direction up. If the upward direction was not specified or the forward and upward vectors are collinear, a new orthonormal upward direction will be generated.

Calls C++ function: static QQuaternion QQuaternion::fromDirection(const QVector3D& direction, const QVector3D& up).

C++ documentation:

Constructs the quaternion using specified forward direction direction and upward direction up. If the upward direction was not specified or the forward and upward vectors are collinear, a new orthonormal upward direction will be generated.

This function was introduced in Qt 5.5.

See also fromAxes() and rotationTo().

source

pub unsafe fn from_euler_angles_1a( euler_angles: impl CastInto<Ref<QVector3D>> ) -> CppBox<QQuaternion>

This is an overloaded function.

Calls C++ function: static QQuaternion QQuaternion::fromEulerAngles(const QVector3D& eulerAngles).

C++ documentation:

This is an overloaded function.

Creates a quaternion that corresponds to a rotation of eulerAngles: eulerAngles.z() degrees around the z axis, eulerAngles.x() degrees around the x axis, and eulerAngles.y() degrees around the y axis (in that order).

This function was introduced in Qt 5.5.

See also toEulerAngles().

source

pub unsafe fn from_euler_angles_3a( pitch: c_float, yaw: c_float, roll: c_float ) -> CppBox<QQuaternion>

Creates a quaternion that corresponds to a rotation of roll degrees around the z axis, pitch degrees around the x axis, and yaw degrees around the y axis (in that order).

Calls C++ function: static QQuaternion QQuaternion::fromEulerAngles(float pitch, float yaw, float roll).

C++ documentation:

Creates a quaternion that corresponds to a rotation of roll degrees around the z axis, pitch degrees around the x axis, and yaw degrees around the y axis (in that order).

This function was introduced in Qt 5.5.

See also getEulerAngles().

source

pub unsafe fn get_axes( &self, x_axis: impl CastInto<Ptr<QVector3D>>, y_axis: impl CastInto<Ptr<QVector3D>>, z_axis: impl CastInto<Ptr<QVector3D>> )

Returns the 3 orthonormal axes (xAxis, yAxis, zAxis) defining the quaternion.

Calls C++ function: void QQuaternion::getAxes(QVector3D* xAxis, QVector3D* yAxis, QVector3D* zAxis) const.

C++ documentation:

Returns the 3 orthonormal axes (xAxis, yAxis, zAxis) defining the quaternion.

This function was introduced in Qt 5.5.

See also fromAxes() and toRotationMatrix().

source

pub unsafe fn get_axis_and_angle_2a( &self, axis: impl CastInto<Ptr<QVector3D>>, angle: *mut c_float )

This is an overloaded function.

Calls C++ function: void QQuaternion::getAxisAndAngle(QVector3D* axis, float* angle) const.

C++ documentation:

This is an overloaded function.

Extracts a 3D axis axis and a rotating angle angle (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromAxisAndAngle().

source

pub unsafe fn get_axis_and_angle_4a( &self, x: *mut c_float, y: *mut c_float, z: *mut c_float, angle: *mut c_float )

Extracts a 3D axis (x, y, z) and a rotating angle angle (in degrees) that corresponds to this quaternion.

Calls C++ function: void QQuaternion::getAxisAndAngle(float* x, float* y, float* z, float* angle) const.

C++ documentation:

Extracts a 3D axis (x, y, z) and a rotating angle angle (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromAxisAndAngle().

source

pub unsafe fn get_euler_angles( &self, pitch: *mut c_float, yaw: *mut c_float, roll: *mut c_float )

Calculates roll, pitch, and yaw Euler angles (in degrees) that corresponds to this quaternion.

Calls C++ function: void QQuaternion::getEulerAngles(float* pitch, float* yaw, float* roll) const.

C++ documentation:

Calculates roll, pitch, and yaw Euler angles (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromEulerAngles().

source

pub unsafe fn inverted(&self) -> CppBox<QQuaternion>

Returns the inverse of this quaternion. If this quaternion is null, then a null quaternion is returned.

Calls C++ function: QQuaternion QQuaternion::inverted() const.

C++ documentation:

Returns the inverse of this quaternion. If this quaternion is null, then a null quaternion is returned.

This function was introduced in Qt 5.5.

See also isNull() and length().

source

pub unsafe fn is_identity(&self) -> bool

Returns true if the x, y, and z components of this quaternion are set to 0.0, and the scalar component is set to 1.0; otherwise returns false.

Calls C++ function: bool QQuaternion::isIdentity() const.

C++ documentation:

Returns true if the x, y, and z components of this quaternion are set to 0.0, and the scalar component is set to 1.0; otherwise returns false.

source

pub unsafe fn is_null(&self) -> bool

Returns true if the x, y, z, and scalar components of this quaternion are set to 0.0; otherwise returns false.

Calls C++ function: bool QQuaternion::isNull() const.

C++ documentation:

Returns true if the x, y, z, and scalar components of this quaternion are set to 0.0; otherwise returns false.

source

pub unsafe fn length(&self) -> c_float

Returns the length of the quaternion. This is also called the "norm".

Calls C++ function: float QQuaternion::length() const.

C++ documentation:

Returns the length of the quaternion. This is also called the “norm”.

See also lengthSquared(), normalized(), and dotProduct().

source

pub unsafe fn length_squared(&self) -> c_float

Returns the squared length of the quaternion.

Calls C++ function: float QQuaternion::lengthSquared() const.

C++ documentation:

Returns the squared length of the quaternion.

See also length() and dotProduct().

source

pub unsafe fn mul_assign_float(&self, factor: c_float) -> Ref<QQuaternion>

Multiplies this quaternion's components by the given factor, and returns a reference to this quaternion.

Calls C++ function: QQuaternion& QQuaternion::operator*=(float factor).

C++ documentation:

Multiplies this quaternion’s components by the given factor, and returns a reference to this quaternion.

See also operator/=().

source

pub unsafe fn mul_assign_q_quaternion( &self, quaternion: impl CastInto<Ref<QQuaternion>> ) -> Ref<QQuaternion>

Multiplies this quaternion by quaternion and returns a reference to this quaternion.

Calls C++ function: QQuaternion& QQuaternion::operator*=(const QQuaternion& quaternion).

C++ documentation:

Multiplies this quaternion by quaternion and returns a reference to this quaternion.

source

pub unsafe fn neg(&self) -> CppBox<QQuaternion>

Calls C++ function: QQuaternion operator-(const QQuaternion& quaternion).

source

pub unsafe fn new_0a() -> CppBox<QQuaternion>

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

Calls C++ function: [constructor] void QQuaternion::QQuaternion().

C++ documentation:

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

source

pub unsafe fn new_4a( scalar: c_float, xpos: c_float, ypos: c_float, zpos: c_float ) -> CppBox<QQuaternion>

Constructs a quaternion with the vector (xpos, ypos, zpos) and scalar.

Calls C++ function: [constructor] void QQuaternion::QQuaternion(float scalar, float xpos, float ypos, float zpos).

C++ documentation:

Constructs a quaternion with the vector (xpos, ypos, zpos) and scalar.

source

pub unsafe fn new_2a( scalar: c_float, vector: impl CastInto<Ref<QVector3D>> ) -> CppBox<QQuaternion>

Constructs a quaternion vector from the specified vector and scalar.

Calls C++ function: [constructor] void QQuaternion::QQuaternion(float scalar, const QVector3D& vector).

C++ documentation:

Constructs a quaternion vector from the specified vector and scalar.

See also vector() and scalar().

source

pub unsafe fn new_1a( vector: impl CastInto<Ref<QVector4D>> ) -> CppBox<QQuaternion>

Constructs a quaternion from the components of vector.

Calls C++ function: [constructor] void QQuaternion::QQuaternion(const QVector4D& vector).

C++ documentation:

Constructs a quaternion from the components of vector.

source

pub unsafe fn new_copy( other: impl CastInto<Ref<QQuaternion>> ) -> CppBox<QQuaternion>

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Calls C++ function: [constructor] void QQuaternion::QQuaternion(const QQuaternion& other).

C++ documentation:

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Quaternions are used to represent rotations in 3D space, and consist of a 3D rotation axis specified by the x, y, and z coordinates, and a scalar representing the rotation angle.

source

pub unsafe fn nlerp( q1: impl CastInto<Ref<QQuaternion>>, q2: impl CastInto<Ref<QQuaternion>>, t: c_float ) -> CppBox<QQuaternion>

Interpolates along the shortest linear path between the rotational positions q1 and q2. The value t should be between 0 and 1, indicating the distance to travel between q1 and q2. The result will be normalized().

Calls C++ function: static QQuaternion QQuaternion::nlerp(const QQuaternion& q1, const QQuaternion& q2, float t).

C++ documentation:

Interpolates along the shortest linear path between the rotational positions q1 and q2. The value t should be between 0 and 1, indicating the distance to travel between q1 and q2. The result will be normalized().

If t is less than or equal to 0, then q1 will be returned. If t is greater than or equal to 1, then q2 will be returned.

The nlerp() function is typically faster than slerp() and will give approximate results to spherical interpolation that are good enough for some applications.

See also slerp().

source

pub unsafe fn normalize(&self)

Normalizes the current quaternion in place. Nothing happens if this is a null quaternion or the length of the quaternion is very close to 1.

Calls C++ function: void QQuaternion::normalize().

C++ documentation:

Normalizes the current quaternion in place. Nothing happens if this is a null quaternion or the length of the quaternion is very close to 1.

See also length() and normalized().

source

pub unsafe fn normalized(&self) -> CppBox<QQuaternion>

Returns the normalized unit form of this quaternion.

Calls C++ function: QQuaternion QQuaternion::normalized() const.

C++ documentation:

Returns the normalized unit form of this quaternion.

If this quaternion is null, then a null quaternion is returned. If the length of the quaternion is very close to 1, then the quaternion will be returned as-is. Otherwise the normalized form of the quaternion of length 1 will be returned.

See also normalize(), length(), and dotProduct().

source

pub unsafe fn rotated_vector( &self, vector: impl CastInto<Ref<QVector3D>> ) -> CppBox<QVector3D>

Rotates vector with this quaternion to produce a new vector in 3D space. The following code:

Calls C++ function: QVector3D QQuaternion::rotatedVector(const QVector3D& vector) const.

C++ documentation:

Rotates vector with this quaternion to produce a new vector in 3D space. The following code:


  QVector3D result = q.rotatedVector(vector);

is equivalent to the following:

QVector3D result = (q QQuaternion(0, vector) q.conjugated()).vector();

source

pub unsafe fn rotation_to( from: impl CastInto<Ref<QVector3D>>, to: impl CastInto<Ref<QVector3D>> ) -> CppBox<QQuaternion>

Returns the shortest arc quaternion to rotate from the direction described by the vector from to the direction described by the vector to.

Calls C++ function: static QQuaternion QQuaternion::rotationTo(const QVector3D& from, const QVector3D& to).

C++ documentation:

Returns the shortest arc quaternion to rotate from the direction described by the vector from to the direction described by the vector to.

This function was introduced in Qt 5.5.

See also fromDirection().

source

pub unsafe fn scalar(&self) -> c_float

Returns the scalar component of this quaternion.

Calls C++ function: float QQuaternion::scalar() const.

C++ documentation:

Returns the scalar component of this quaternion.

See also setScalar(), x(), y(), and z().

source

pub unsafe fn set_scalar(&self, scalar: c_float)

Sets the scalar component of this quaternion to scalar.

Calls C++ function: void QQuaternion::setScalar(float scalar).

C++ documentation:

Sets the scalar component of this quaternion to scalar.

See also scalar(), setX(), setY(), and setZ().

source

pub unsafe fn set_vector_1a(&self, vector: impl CastInto<Ref<QVector3D>>)

Sets the vector component of this quaternion to vector.

Calls C++ function: void QQuaternion::setVector(const QVector3D& vector).

C++ documentation:

Sets the vector component of this quaternion to vector.

See also vector() and setScalar().

source

pub unsafe fn set_vector_3a(&self, x: c_float, y: c_float, z: c_float)

Sets the vector component of this quaternion to (x, y, z).

Calls C++ function: void QQuaternion::setVector(float x, float y, float z).

C++ documentation:

Sets the vector component of this quaternion to (x, y, z).

See also vector() and setScalar().

source

pub unsafe fn set_x(&self, x: c_float)

Sets the x coordinate of this quaternion's vector to the given x coordinate.

Calls C++ function: void QQuaternion::setX(float x).

C++ documentation:

Sets the x coordinate of this quaternion’s vector to the given x coordinate.

See also x(), setY(), setZ(), and setScalar().

source

pub unsafe fn set_y(&self, y: c_float)

Sets the y coordinate of this quaternion's vector to the given y coordinate.

Calls C++ function: void QQuaternion::setY(float y).

C++ documentation:

Sets the y coordinate of this quaternion’s vector to the given y coordinate.

See also y(), setX(), setZ(), and setScalar().

source

pub unsafe fn set_z(&self, z: c_float)

Sets the z coordinate of this quaternion's vector to the given z coordinate.

Calls C++ function: void QQuaternion::setZ(float z).

C++ documentation:

Sets the z coordinate of this quaternion’s vector to the given z coordinate.

See also z(), setX(), setY(), and setScalar().

source

pub unsafe fn slerp( q1: impl CastInto<Ref<QQuaternion>>, q2: impl CastInto<Ref<QQuaternion>>, t: c_float ) -> CppBox<QQuaternion>

Interpolates along the shortest spherical path between the rotational positions q1 and q2. The value t should be between 0 and 1, indicating the spherical distance to travel between q1 and q2.

Calls C++ function: static QQuaternion QQuaternion::slerp(const QQuaternion& q1, const QQuaternion& q2, float t).

C++ documentation:

Interpolates along the shortest spherical path between the rotational positions q1 and q2. The value t should be between 0 and 1, indicating the spherical distance to travel between q1 and q2.

If t is less than or equal to 0, then q1 will be returned. If t is greater than or equal to 1, then q2 will be returned.

See also nlerp().

source

pub unsafe fn sub_assign( &self, quaternion: impl CastInto<Ref<QQuaternion>> ) -> Ref<QQuaternion>

Subtracts the given quaternion from this quaternion and returns a reference to this quaternion.

Calls C++ function: QQuaternion& QQuaternion::operator-=(const QQuaternion& quaternion).

C++ documentation:

Subtracts the given quaternion from this quaternion and returns a reference to this quaternion.

See also operator+=().

source

pub unsafe fn to_euler_angles(&self) -> CppBox<QVector3D>

This is an overloaded function.

Calls C++ function: QVector3D QQuaternion::toEulerAngles() const.

C++ documentation:

This is an overloaded function.

Calculates roll, pitch, and yaw Euler angles (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromEulerAngles().

source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Returns the quaternion as a QVariant.

Calls C++ function: QVariant QQuaternion::operator QVariant() const.

C++ documentation:

Returns the quaternion as a QVariant.

source

pub unsafe fn to_vector_4d(&self) -> CppBox<QVector4D>

Returns this quaternion as a 4D vector.

Calls C++ function: QVector4D QQuaternion::toVector4D() const.

C++ documentation:

Returns this quaternion as a 4D vector.

source

pub unsafe fn vector(&self) -> CppBox<QVector3D>

Returns the vector component of this quaternion.

Calls C++ function: QVector3D QQuaternion::vector() const.

C++ documentation:

Returns the vector component of this quaternion.

See also setVector() and scalar().

source

pub unsafe fn x(&self) -> c_float

Returns the x coordinate of this quaternion's vector.

Calls C++ function: float QQuaternion::x() const.

C++ documentation:

Returns the x coordinate of this quaternion’s vector.

See also setX(), y(), z(), and scalar().

source

pub unsafe fn y(&self) -> c_float

Returns the y coordinate of this quaternion's vector.

Calls C++ function: float QQuaternion::y() const.

C++ documentation:

Returns the y coordinate of this quaternion’s vector.

See also setY(), x(), z(), and scalar().

source

pub unsafe fn z(&self) -> c_float

Returns the z coordinate of this quaternion's vector.

Calls C++ function: float QQuaternion::z() const.

C++ documentation:

Returns the z coordinate of this quaternion’s vector.

See also setZ(), x(), y(), and scalar().

Trait Implementations§

source§

impl Add<Ref<QQuaternion>> for &QQuaternion

source§

fn add(self, q2: Ref<QQuaternion>) -> CppBox<QQuaternion>

Calls C++ function: QQuaternion operator+(const QQuaternion& q1, const QQuaternion& q2).

§

type Output = CppBox<QQuaternion>

The resulting type after applying the + operator.
source§

impl CppDeletable for QQuaternion

source§

unsafe fn delete(&self)

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Calls C++ function: [destructor] void QQuaternion::~QQuaternion().

C++ documentation:

The QQuaternion class represents a quaternion consisting of a vector and scalar.

Quaternions are used to represent rotations in 3D space, and consist of a 3D rotation axis specified by the x, y, and z coordinates, and a scalar representing the rotation angle.

source§

impl Div<f32> for &QQuaternion

source§

fn div(self, divisor: c_float) -> CppBox<QQuaternion>

Calls C++ function: QQuaternion operator/(const QQuaternion& quaternion, float divisor).

§

type Output = CppBox<QQuaternion>

The resulting type after applying the / operator.
source§

impl Mul<Ref<QQuaternion>> for &QQuaternion

source§

fn mul(self, q2: Ref<QQuaternion>) -> CppBox<QQuaternion>

Calls C++ function: QQuaternion operator*(const QQuaternion& q1, const QQuaternion& q2).

§

type Output = CppBox<QQuaternion>

The resulting type after applying the * operator.
source§

impl Mul<Ref<QVector3D>> for &QQuaternion

source§

fn mul(self, vec: Ref<QVector3D>) -> CppBox<QVector3D>

Calls C++ function: QVector3D operator*(const QQuaternion& quaternion, const QVector3D& vec).

§

type Output = CppBox<QVector3D>

The resulting type after applying the * operator.
source§

impl Mul<f32> for &QQuaternion

source§

fn mul(self, factor: c_float) -> CppBox<QQuaternion>

Calls C++ function: QQuaternion operator*(const QQuaternion& quaternion, float factor).

§

type Output = CppBox<QQuaternion>

The resulting type after applying the * operator.
source§

impl PartialEq<Ref<QQuaternion>> for QQuaternion

source§

fn eq(&self, q2: &Ref<QQuaternion>) -> bool

Returns true if page layout lhs is equal to page layout rhs, i.e. if all the attributes are exactly equal.

Calls C++ function: bool operator==(const QQuaternion& q1, const QQuaternion& q2).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for bool operator==(const QPageLayout &lhs, const QPageLayout &rhs):

Returns true if page layout lhs is equal to page layout rhs, i.e. if all the attributes are exactly equal.

Note that this is a strict equality, especially for page size where the QPageSize ID, name and size must exactly match, and the margins where the units must match.

See also QPageLayout::isEquivalentTo().

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub<Ref<QQuaternion>> for &QQuaternion

source§

fn sub(self, q2: Ref<QQuaternion>) -> CppBox<QQuaternion>

Calls C++ function: QQuaternion operator-(const QQuaternion& q1, const QQuaternion& q2).

§

type Output = CppBox<QQuaternion>

The resulting type after applying the - operator.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.