Struct rhusics_core::collide3d::Sphere
source · pub struct Sphere<S> {
pub radius: S,
}
Expand description
Sphere primitive
Fields
radius: S
Radius of the sphere
Implementations
Trait Implementations
sourceimpl<S> ComputeBound<Aabb3<S>> for Sphere<S>where
S: BaseFloat,
impl<S> ComputeBound<Aabb3<S>> for Sphere<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 Sphere<S>where
S: BaseFloat,
impl<S> ComputeBound<Sphere<S>> for Sphere<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 Sphere<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Sphere<S>where
S: Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Sphere<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Sphere<S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<S> PartialEq<Sphere<S>> for Sphere<S>where
S: PartialEq<S>,
impl<S> PartialEq<Sphere<S>> for Sphere<S>where
S: PartialEq<S>,
sourceimpl<S> Serialize for Sphere<S>where
S: Serialize,
impl<S> Serialize for Sphere<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 Sphere<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for Sphere<S>where
S: RefUnwindSafe,
impl<S> Send for Sphere<S>where
S: Send,
impl<S> Sync for Sphere<S>where
S: Sync,
impl<S> Unpin for Sphere<S>where
S: Unpin,
impl<S> UnwindSafe for Sphere<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