pub struct AABBVersion1 { /* private fields */ }Expand description
A collision checker
Implementations§
Source§impl AABBVersion1
impl AABBVersion1
Sourcepub fn add(
&mut self,
item: AABBVersion1CheckedItem,
corner: &Corners,
) -> Result<()>
pub fn add( &mut self, item: AABBVersion1CheckedItem, corner: &Corners, ) -> Result<()>
Add a new value
Sourcepub fn add_v2(
&mut self,
item: AABBVersion1CheckedItem,
corner: &Corners,
) -> Result<()>
pub fn add_v2( &mut self, item: AABBVersion1CheckedItem, corner: &Corners, ) -> Result<()>
Version 2 of add
Sourcepub fn check_item(
&self,
item: Item,
corner: &Corners,
) -> Option<AABBVersion1CheckedItem>
pub fn check_item( &self, item: Item, corner: &Corners, ) -> Option<AABBVersion1CheckedItem>
Check if a item does colliot or not
Sourcepub fn check_item_v2(
&self,
item: Item,
corner: &Corners,
) -> Option<AABBVersion1CheckedItem>
pub fn check_item_v2( &self, item: Item, corner: &Corners, ) -> Option<AABBVersion1CheckedItem>
Check v2
Sourcepub fn point_is_free(&self, p: &Corners) -> bool
pub fn point_is_free(&self, p: &Corners) -> bool
checks if a point is valid
Trait Implementations§
Source§impl Clone for AABBVersion1
impl Clone for AABBVersion1
Source§fn clone(&self) -> AABBVersion1
fn clone(&self) -> AABBVersion1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AABBVersion1
impl Debug for AABBVersion1
Source§impl Default for AABBVersion1
impl Default for AABBVersion1
Source§impl<'de> Deserialize<'de> for AABBVersion1
impl<'de> Deserialize<'de> for AABBVersion1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AABBVersion1
impl RefUnwindSafe for AABBVersion1
impl Send for AABBVersion1
impl Sync for AABBVersion1
impl Unpin for AABBVersion1
impl UnsafeUnpin for AABBVersion1
impl UnwindSafe for AABBVersion1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more