[−][src]Struct c2::AABB
Rectangle with a min vector and a max vector
Implementations
impl AABB
[src]
pub fn new<V: Into<Vec2>>(min: V, max: V) -> AABB
[src]
Creates a new AABB rectangle
pub fn min(self) -> Vec2
[src]
The minimum position
pub fn max(self) -> Vec2
[src]
The maximum position
Trait Implementations
impl AdvancedShape for AABB
[src]
fn gjk<'a, T: Shape>(&'a self, other: &'a T) -> GjkRunner<'a, Self, T> where
Self: Sized,
T: Sized,
[src]
Self: Sized,
T: Sized,
fn time_of_impact<'a, T: Shape>(
&'a self,
other: &'a T
) -> ToiRunner<'a, Self, T> where
Self: Sized,
T: Sized,
[src]
&'a self,
other: &'a T
) -> ToiRunner<'a, Self, T> where
Self: Sized,
T: Sized,
impl BasicShape for AABB
[src]
fn collides_with<T: Shape>(&self, other: &T) -> bool
[src]
fn manifold<T: Shape>(&self, other: &T) -> Manifold
[src]
impl Clone for AABB
[src]
impl Copy for AABB
[src]
impl Debug for AABB
[src]
impl Shape for AABB
[src]
Auto Trait Implementations
impl RefUnwindSafe for AABB
impl Send for AABB
impl Sync for AABB
impl Unpin for AABB
impl UnwindSafe for AABB
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,