Struct raylib::core::math::Vector4 [−][src]
Fields
x: f32
y: f32
z: f32
w: 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 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.
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
type Output = Quaternion
type Output = Quaternion
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Performs the *=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Vector4
impl UnwindSafe for Vector4
Blanket Implementations
Mutably borrows from an owned value. Read more