Skip to main content

CanMirror

Trait CanMirror 

Source
pub trait CanMirror: GeometricPrimitive + Sized {
    type Point: IsPoint;
    type Normal: IsUnitVector;

    // Required method
    fn mirror<P>(&mut self, mirror_plane: &P)
       where P: IsPlane<Point = Self::Point, Normal = Self::Normal>;
}
Expand description

Mirrors a primitive across a compatible plane.

Required Associated Types§

Source

type Point: IsPoint

Point type used by the mirror plane.

Source

type Normal: IsUnitVector

Unit normal type used by the mirror plane.

Required Methods§

Source

fn mirror<P>(&mut self, mirror_plane: &P)
where P: IsPlane<Point = Self::Point, Normal = Self::Normal>,

Reflects self across mirror_plane.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§