pub struct Sphere {
pub center: Point,
pub radius: Float,
}Fields§
§center: Point§radius: FloatImplementations§
Trait Implementations§
Source§impl Intersects for Sphere
impl Intersects for Sphere
Source§fn interesects(&self, other: &Self) -> bool
fn interesects(&self, other: &Self) -> bool
Test whether two items intersect, without finding the intersection
Source§fn intersection(&self, other: &Self) -> Self::Intersection
fn intersection(&self, other: &Self) -> Self::Intersection
Compute the resulting intersection of two items. Read more
Auto Trait Implementations§
impl Freeze for Sphere
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnwindSafe for Sphere
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