[][src]Struct mgf::OBB

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

An arbitrarily oriented bounding box.

Fields

c: Point3<f32>q: Quaternion<f32>r: Vector3<f32>

Methods

impl OBB[src]

pub fn new(c: Point3<f32>, r: Vector3<f32>, q: Quaternion<f32>) -> Self[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]

impl Shape for OBB[src]

fn set_pos(&mut self, p: Point3<f32>)[src]

Sets the center of the shape to p.

impl Volumetric for OBB[src]

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

Rotates the object around a point.

impl Convex<Point3<f32>> for OBB[src]

impl Inertia for OBB[src]

impl Clone for OBB[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for OBB[src]

impl Debug for OBB[src]

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

type Output = Self

The resulting type after applying the + operator.

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

type Output = Self

The resulting type after applying the - operator.

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

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

Auto Trait Implementations

impl Send for OBB

impl Sync for OBB

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.