Struct mgf::OBB[][src]

pub struct OBB {
    pub c: Point3<f32>,
    pub q: Quaternion<f32>,
    pub r: Vector3<f32>,
}

An arbitrarily oriented bounding box.

Fields

Methods

impl OBB
[src]

Create a new OBB.

Trait Implementations

impl BoundedBy<AABB> for OBB
[src]

impl BoundedBy<Sphere> for OBB
[src]

impl<P: Particle> Intersects<OBB> for P
[src]

Returns an Intersection if one exists.

impl Copy for OBB
[src]

impl Clone for OBB
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OBB
[src]

Formats the value using the given formatter. Read more

impl Add<Vector3<f32>> for OBB
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Vector3<f32>> for OBB
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl AddAssign<Vector3<f32>> for OBB
[src]

Performs the += operation.

impl SubAssign<Vector3<f32>> for OBB
[src]

Performs the -= operation.

impl Shape for OBB
[src]

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

Returns the closest point on the shape to the given point.

Sets the center of the shape to p.

impl Volumetric for OBB
[src]

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

Rotates the object around a point.

impl Convex for OBB
[src]

Returns the point on the object that produces the greatest dot product with the supplied axis. The axis is expected to be normalized. Read more

Auto Trait Implementations

impl Send for OBB

impl Sync for OBB