[][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 Add<Vector3<f32>> for OBB[src]

type Output = Self

The resulting type after applying the + operator.

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

impl BoundedBy<AABB> for OBB[src]

impl BoundedBy<Sphere> for OBB[src]

impl Clone for OBB[src]

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

impl Copy for OBB[src]

impl Debug for OBB[src]

impl<'de> Deserialize<'de> for OBB[src]

impl Inertia for OBB[src]

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

impl Serialize for OBB[src]

impl Shape for OBB[src]

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

type Output = Self

The resulting type after applying the - operator.

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

impl Volumetric for OBB[src]

Auto Trait Implementations

impl RefUnwindSafe for OBB

impl Send for OBB

impl Sync for OBB

impl Unpin for OBB

impl UnwindSafe for OBB

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.