pub struct SphereModel {
pub center: Vec3<f32>,
pub radius: f32,
}Expand description
Sphere model: all surface points are radius from center.
Fields§
§center: Vec3<f32>Sphere center.
radius: f32Sphere radius.
Implementations§
Trait Implementations§
Source§impl Clone for SphereModel
impl Clone for SphereModel
Source§fn clone(&self) -> SphereModel
fn clone(&self) -> SphereModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SphereModel
impl Debug for SphereModel
Source§impl PartialEq for SphereModel
impl PartialEq for SphereModel
impl Copy for SphereModel
impl StructuralPartialEq for SphereModel
Auto Trait Implementations§
impl Freeze for SphereModel
impl RefUnwindSafe for SphereModel
impl Send for SphereModel
impl Sync for SphereModel
impl Unpin for SphereModel
impl UnsafeUnpin for SphereModel
impl UnwindSafe for SphereModel
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