pub struct SphereSurface {
pub center: Vec3,
pub radius: f64,
}Expand description
A sphere represented by its center and radius.
Fields§
§center: Vec3The sphere center.
radius: f64The positive sphere radius.
Trait Implementations§
Source§impl Clone for SphereSurface
impl Clone for SphereSurface
Source§fn clone(&self) -> SphereSurface
fn clone(&self) -> SphereSurface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SphereSurface
Source§impl Debug for SphereSurface
impl Debug for SphereSurface
Source§impl<'de> Deserialize<'de> for SphereSurface
impl<'de> Deserialize<'de> for SphereSurface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SphereSurface
impl PartialEq for SphereSurface
Source§impl Serialize for SphereSurface
impl Serialize for SphereSurface
impl StructuralPartialEq for SphereSurface
Auto Trait Implementations§
impl Freeze for SphereSurface
impl RefUnwindSafe for SphereSurface
impl Send for SphereSurface
impl Sync for SphereSurface
impl Unpin for SphereSurface
impl UnsafeUnpin for SphereSurface
impl UnwindSafe for SphereSurface
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