Struct rhusics_core::collide2d::Rectangle
source · pub struct Rectangle<S> { /* private fields */ }
Expand description
Rectangle primitive.
Have a cached set of corner points to speed up computation.
Implementations
Trait Implementations
sourceimpl<S> ComputeBound<Aabb2<S>> for Rectangle<S>where
S: BaseFloat,
impl<S> ComputeBound<Aabb2<S>> for Rectangle<S>where
S: BaseFloat,
sourcefn compute_bound(&self) -> Aabb2<S>
fn compute_bound(&self) -> Aabb2<S>
Compute the bounding volume
sourceimpl<'de, S> Deserialize<'de> for Rectangle<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Rectangle<S>where
S: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Rectangle<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Rectangle<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<S> PartialEq<Rectangle<S>> for Rectangle<S>where
S: PartialEq<S>,
impl<S> PartialEq<Rectangle<S>> for Rectangle<S>where
S: PartialEq<S>,
sourceimpl<S> Serialize for Rectangle<S>where
S: Serialize,
impl<S> Serialize for Rectangle<S>where
S: Serialize,
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<S> StructuralPartialEq for Rectangle<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for Rectangle<S>where
S: RefUnwindSafe,
impl<S> Send for Rectangle<S>where
S: Send,
impl<S> Sync for Rectangle<S>where
S: Sync,
impl<S> Unpin for Rectangle<S>where
S: Unpin,
impl<S> UnwindSafe for Rectangle<S>where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more