Trait mgf::Shape [] [src]

pub trait Shape: AddAssign<Vector3<f32>> + SubAssign<Vector3<f32>> {
    fn center(&self) -> Point3<f32>;

    fn set_pos(&mut self, p: Point3<f32>) { ... }
}

A Set of points in space. If an object can be moved around and has point something that can be called a center, it is a Shape.

Required Methods

Returns the center of mass of the geometry, assuming a regular density.

Provided Methods

Sets the center of the shape to p.

Implementors