Skip to main content

RotatingAnim

Trait RotatingAnim 

Source
pub trait RotatingAnim:
    RotatingRequirement
    + Sized
    + 'static {
    // Provided methods
    fn rotating(&mut self, angle: f64, axis: DVec3) -> RotatingAnimation<Self>
       where Self: Aabb { ... }
    fn rotating_at<A: Locate<Self>>(
        &mut self,
        angle: f64,
        axis: DVec3,
        anchor: A,
    ) -> RotatingAnimation<Self> { ... }
}
Expand description

The methods to create rotation animations for T that satisfies RotatingRequirement

Provided Methods§

Source

fn rotating(&mut self, angle: f64, axis: DVec3) -> RotatingAnimation<Self>
where Self: Aabb,

Rotate by a given angle about a given axis at center.

Source

fn rotating_at<A: Locate<Self>>( &mut self, angle: f64, axis: DVec3, anchor: A, ) -> RotatingAnimation<Self>

Rotate by a given angle about a given axis at the given anchor.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: RotatingRequirement + 'static> RotatingAnim for T