[][src]Struct qt_gui::QQuaternion

#[repr(C)]
pub struct QQuaternion { /* fields omitted */ }

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.

Methods

impl QQuaternion[src]

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

Use conjugated() instead.

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

C++ documentation:

Use conjugated() instead.

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

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.

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<QQuaternion>>
) -> MutRef<QQuaternion>
[src]

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.

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

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().

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>
[src]

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().

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

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().

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

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().

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

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().

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

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().

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

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().

pub unsafe fn get_axes(
    &self,
    x_axis: impl CastInto<MutPtr<QVector3D>>,
    y_axis: impl CastInto<MutPtr<QVector3D>>,
    z_axis: impl CastInto<MutPtr<QVector3D>>
)
[src]

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().

pub unsafe fn get_axis_and_angle_2a(
    &self,
    axis: impl CastInto<MutPtr<QVector3D>>,
    angle: impl CastInto<MutPtr<c_float>>
)
[src]

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().

pub unsafe fn get_axis_and_angle_4a(
    &self,
    x: impl CastInto<MutPtr<c_float>>,
    y: impl CastInto<MutPtr<c_float>>,
    z: impl CastInto<MutPtr<c_float>>,
    angle: impl CastInto<MutPtr<c_float>>
)
[src]

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().

pub unsafe fn get_euler_angles(
    &self,
    pitch: impl CastInto<MutPtr<c_float>>,
    yaw: impl CastInto<MutPtr<c_float>>,
    roll: impl CastInto<MutPtr<c_float>>
)
[src]

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().

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

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().

pub unsafe fn is_identity(&self) -> bool[src]

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.

pub unsafe fn is_null(&self) -> bool[src]

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.

pub unsafe fn length(&self) -> c_float[src]

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().

pub unsafe fn length_squared(&self) -> c_float[src]

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().

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

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

pub unsafe fn new_0a() -> CppBox<QQuaternion>[src]

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.

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

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.

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

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().

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

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.

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

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.

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

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().

pub unsafe fn normalize(&mut self)[src]

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().

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

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().

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

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();

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

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().

pub unsafe fn scalar(&self) -> c_float[src]

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().

pub unsafe fn set_scalar(&mut self, scalar: c_float)[src]

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().

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

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().

pub unsafe fn set_vector_3a(&mut self, x: c_float, y: c_float, z: c_float)[src]

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().

pub unsafe fn set_x(&mut self, x: c_float)[src]

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().

pub unsafe fn set_y(&mut self, y: c_float)[src]

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().

pub unsafe fn set_z(&mut self, z: c_float)[src]

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().

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

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().

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

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().

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

Returns the quaternion as a QVariant.

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

C++ documentation:

Returns the quaternion as a QVariant.

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

Returns this quaternion as a 4D vector.

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

C++ documentation:

Returns this quaternion as a 4D vector.

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

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().

pub unsafe fn x(&self) -> c_float[src]

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().

pub unsafe fn y(&self) -> c_float[src]

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().

pub unsafe fn z(&self) -> c_float[src]

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

impl<'_> Add<Ref<QQuaternion>> for &'_ QQuaternion[src]

type Output = CppBox<QQuaternion>

The resulting type after applying the + operator.

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

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

impl AddAssign<Ref<QQuaternion>> for QQuaternion[src]

fn add_assign(&mut self, quaternion: Ref<QQuaternion>)[src]

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-=().

impl CppDeletable for QQuaternion[src]

unsafe fn delete(&mut self)[src]

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.

impl<'_> Div<f32> for &'_ QQuaternion[src]

type Output = CppBox<QQuaternion>

The resulting type after applying the / operator.

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

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

impl DivAssign<f32> for QQuaternion[src]

fn div_assign(&mut self, divisor: c_float)[src]

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*=().

impl<'_> Mul<Ref<QQuaternion>> for &'_ QQuaternion[src]

type Output = CppBox<QQuaternion>

The resulting type after applying the * operator.

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

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

impl<'_> Mul<Ref<QVector3D>> for &'_ QQuaternion[src]

type Output = CppBox<QVector3D>

The resulting type after applying the * operator.

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

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

impl<'_> Mul<f32> for &'_ QQuaternion[src]

type Output = CppBox<QQuaternion>

The resulting type after applying the * operator.

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

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

impl MulAssign<Ref<QQuaternion>> for QQuaternion[src]

fn mul_assign(&mut self, quaternion: Ref<QQuaternion>)[src]

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.

impl MulAssign<f32> for QQuaternion[src]

fn mul_assign(&mut self, factor: c_float)[src]

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/=().

impl PartialEq<Ref<QQuaternion>> for QQuaternion[src]

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

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().

impl<'_> Sub<Ref<QQuaternion>> for &'_ QQuaternion[src]

type Output = CppBox<QQuaternion>

The resulting type after applying the - operator.

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

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

impl SubAssign<Ref<QQuaternion>> for QQuaternion[src]

fn sub_assign(&mut self, quaternion: Ref<QQuaternion>)[src]

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+=().

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.