Trait mgf::Bound [] [src]

pub trait Bound: Copy + Add<Vector3<f32>, Output = Self> + Sub<Vector3<f32>, Output = Self> + Mul<f32, Output = Self> + Div<f32, Output = Self> + Add<f32, Output = Self> + Sub<f32, Output = Self> + Shape + Collider<Overlaps, Self> + Collider<Contains, Self> {
    fn combine(_: &Self, _: &Self) -> Self;
fn rotate(&self, _: Quaternion<f32>) -> Self;
fn surface_area(&self) -> f32; }

Bounds are objects that can collide and combine with each other. They also can be scaled, extended, and have a center that can be moved, along with a surface area.

Required Methods

Produce a bound that encloses the two arguments.

Rotate the bound in place. This is useless for spheres.

Implementors