[][src]Trait mgf::Volumetric

pub trait Volumetric: Shape + Clone {
    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.

Loading content...

Provided methods

fn rotate_about<R: Rotation3<f32>>(self, r: R, p: Point3<f32>) -> Self

Rotates the object around a point.

Loading content...

Implementors

impl Volumetric for Component[src]

impl Volumetric for AABB[src]

impl Volumetric for Capsule[src]

impl Volumetric for ConvexMesh[src]

impl Volumetric for Mesh[src]

Rotating meshes is not a fast operation.

impl Volumetric for OBB[src]

impl Volumetric for Sphere[src]

fn rotate<R: Rotation3<f32>>(self, _: R) -> Sphere[src]

Rotation to a bounding sphere does nothing.

Loading content...