Struct rhusics_core::collide3d::Cuboid
source · pub struct Cuboid<S> { /* private fields */ }
Expand description
Cuboid primitive.
Have a cached set of corner points to speed up computation.
Implementations
Trait Implementations
sourceimpl<S> ComputeBound<Aabb3<S>> for Cuboid<S>where
S: BaseFloat,
impl<S> ComputeBound<Aabb3<S>> for Cuboid<S>where
S: BaseFloat,
sourcefn compute_bound(&self) -> Aabb3<S>
fn compute_bound(&self) -> Aabb3<S>
Compute the bounding volume
sourceimpl<S> ComputeBound<Sphere<S>> for Cuboid<S>where
S: BaseFloat,
impl<S> ComputeBound<Sphere<S>> for Cuboid<S>where
S: BaseFloat,
sourcefn compute_bound(&self) -> Sphere<S>
fn compute_bound(&self) -> Sphere<S>
Compute the bounding volume
sourceimpl<'de, S> Deserialize<'de> for Cuboid<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Cuboid<S>where
S: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Cuboid<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Cuboid<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<S> PartialEq<Cuboid<S>> for Cuboid<S>where
S: PartialEq<S>,
impl<S> PartialEq<Cuboid<S>> for Cuboid<S>where
S: PartialEq<S>,
sourceimpl<S> Serialize for Cuboid<S>where
S: Serialize,
impl<S> Serialize for Cuboid<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 Cuboid<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for Cuboid<S>where
S: RefUnwindSafe,
impl<S> Send for Cuboid<S>where
S: Send,
impl<S> Sync for Cuboid<S>where
S: Sync,
impl<S> Unpin for Cuboid<S>where
S: Unpin,
impl<S> UnwindSafe for Cuboid<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