pub struct Sphere { /* private fields */ }Expand description
A 3D sphere defined by its center point and radius.
Implementations§
Source§impl Sphere
Implements methods for Sphere.
impl Sphere
Implements methods for Sphere.
Source§impl Sphere
impl Sphere
pub fn get_center(&self) -> Vector3D
pub fn get_mut_center(&mut self) -> &mut Vector3D
pub fn set_center(&mut self, val: Vector3D) -> &mut Self
pub fn get_radius(&self) -> f64
pub fn get_mut_radius(&mut self) -> &mut f64
pub fn set_radius(&mut self, val: f64) -> &mut Self
Trait Implementations§
impl Copy for Sphere
Source§impl PartialOrd for Sphere
impl PartialOrd for Sphere
impl StructuralPartialEq for Sphere
Auto Trait Implementations§
impl Freeze for Sphere
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnsafeUnpin 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