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