Struct collision::Obb [] [src]

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

OBB center point in world space

Axis OBB is aligned with

Size of the OBB

Methods

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

[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: Clone, V: Clone, P: Clone> Clone for Obb<S, V, P>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

Formats the value using the given formatter. Read more

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