[][src]Struct collision::Obb

pub struct Obb<S, V, P> {
    pub center: P,
    pub axis: V,
    pub extents: V,
    // some fields omitted
}

Generic object bounding box, centered on center, aligned with axis, and with size extents.

Fields

center: P

OBB center point in world space

axis: V

Axis OBB is aligned with

extents: V

Size of the OBB

Methods

impl<S, V, P> Obb<S, V, P>
[src]

pub fn new(center: P, axis: V, extents: V) -> Self
[src]

Create a new generic OBB with the given center, axis and extents

Trait Implementations

impl<S: Copy, V: Copy, P: Copy> Copy for Obb<S, V, P>
[src]

impl<S: PartialEq, V: PartialEq, P: PartialEq> PartialEq<Obb<S, V, P>> for Obb<S, V, P>
[src]

impl<S: Clone, V: Clone, P: Clone> Clone for Obb<S, V, P>
[src]

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

Performs copy-assignment from source. Read more

impl<S: Debug, V: Debug, P: Debug> Debug for Obb<S, V, P>
[src]

Auto Trait Implementations

impl<S, V, P> Send for Obb<S, V, P> where
    P: Send,
    S: Send,
    V: Send

impl<S, V, P> Sync for Obb<S, V, P> where
    P: Sync,
    S: Sync,
    V: Sync

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
    T: From<U>, 
[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> 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.

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