#[repr(C)]pub struct Sphere<T> {
pub center: Point3<T>,
pub radius: T,
}
Expand description
Sphere structure.
Fields§
§center: Point3<T>
The center of the sphere.
radius: T
The radius of the sphere.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Sphere<T>
impl<T: Eq> Eq for Sphere<T>
impl<T> StructuralPartialEq for Sphere<T>
Auto Trait Implementations§
impl<T> Freeze for Sphere<T>where
T: Freeze,
impl<T> RefUnwindSafe for Sphere<T>where
T: RefUnwindSafe,
impl<T> Send for Sphere<T>where
T: Send,
impl<T> Sync for Sphere<T>where
T: Sync,
impl<T> Unpin for Sphere<T>where
T: Unpin,
impl<T> UnwindSafe for Sphere<T>where
T: UnwindSafe,
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