Struct raylib::core::math::Vector4[][src]

#[repr(C)]
pub struct Vector4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }

Fields

x: f32y: f32z: f32w: f32

Implementations

Returns a new Quaternion with specified components.

Returns the identity quaternion.

Returns quaternion based on the rotation from one vector to another.

Returns a quaternion for a given rotation matrix.

Returns a rotation matrix for the current quaternion.

Returns a quaternion equivalent to Euler angles.

Returns a vector containing Euler angles in radians (roll, pitch, yaw), based on the current quaternion.

Returns rotation quaternion for an axis and angle (in radians).

Returns a 2-tuple containing the axis (Vector3) and angle (f32 in radians) for the current quaternion.

Computes the length of the current quaternion.

Returns a normalized version of the current quaternion.

Returns an inverted version of the current quaternion.

Calculates linear interpolation between current and q quaternions.

Calculates slerp-optimized interpolation between current and q quaternions.

Calculates spherical linear interpolation between current and q quaternions.

Returns a transformed version of the current quaternion given a transformation matrix.

Returns a new Quaternion with componenets clamp to a certain interval.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.