Trait mgf::Volumetric
[−]
[src]
pub trait Volumetric: Shape + Copy { fn rotate<R: Rotation3<f32>>(&self, r: R) -> Self; fn rotate_about<R: Rotation3<f32>>(&self, r: R, p: Point3<f32>) -> Self { ... } }
A type that has volume.
Any type that has Volume can be rotated about its center.
Required Methods
fn rotate<R: Rotation3<f32>>(&self, r: R) -> Self
Rotate the bound in place. This is useless for spheres.
Provided Methods
fn rotate_about<R: Rotation3<f32>>(&self, r: R, p: Point3<f32>) -> Self
Rotates the object around a point.