[−][src]Struct collision::Obb
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(&self) -> Obb<S, V, P>
[src]
default 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,
P: Send,
S: Send,
V: Send,
impl<S, V, P> Sync for Obb<S, V, P> where
P: Sync,
S: Sync,
V: Sync,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,