Skip to main content

CanRotate

Trait CanRotate 

Source
pub trait CanRotate: GeometricPrimitive + Sized {
    type Point: IsPoint;

    // Required method
    fn rotate<'a, L>(&mut self, axis: &L, angle_radians: GeometryMeasure)
       where L: IsLine<'a, Self::Point>;
}
Expand description

Rotates a primitive around a line by an angle in radians.

Required Associated Types§

Source

type Point: IsPoint

Point type used by the rotation axis.

Required Methods§

Source

fn rotate<'a, L>(&mut self, axis: &L, angle_radians: GeometryMeasure)
where L: IsLine<'a, Self::Point>,

Mutates self by rotating about axis.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§