Skip to main content

RotateTransform

Trait RotateTransform 

Source
pub trait RotateTransform {
    // Required method
    fn rotate_on_axis(&mut self, axis: DVec3, angle: f64) -> &mut Self;

    // Provided methods
    fn rotate_on_x(&mut self, angle: f64) -> &mut Self { ... }
    fn rotate_on_y(&mut self, angle: f64) -> &mut Self { ... }
    fn rotate_on_z(&mut self, angle: f64) -> &mut Self { ... }
}
Expand description

Rotating operations.

This trait is blanket-implemented for all T: ApplyTransform<Rigid> (see super::ApplyTransform).

Required Methods§

Source

fn rotate_on_axis(&mut self, axis: DVec3, angle: f64) -> &mut Self

Rotate the item by a given angle about a given axis.

Provided Methods§

Source

fn rotate_on_x(&mut self, angle: f64) -> &mut Self

Rotate the item by a given angle about the X axis.

Source

fn rotate_on_y(&mut self, angle: f64) -> &mut Self

Rotate the item by a given angle about the Y axis.

Source

fn rotate_on_z(&mut self, angle: f64) -> &mut Self

Rotate the item by a given angle about the Z axis.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§