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
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: Clone, V: Clone, P: Clone> Clone for Obb<S, V, P>
[src]
fn clone(&self) -> Obb<S, V, P>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
fn eq(&self, __arg_0: &Obb<S, V, P>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Obb<S, V, P>) -> bool
[src]
This method tests for !=
.