#[repr(transparent)]pub struct Sphere { /* private fields */ }
Implementations
sourceimpl Sphere
impl Sphere
pub fn contains_point(&self, point: &Point3D) -> bool
pub fn distance(&self, point: &Point3D) -> f32
pub fn bounding_box(&self) -> Box
pub fn center(&self) -> Point3D
pub fn radius(&self) -> f32
pub fn is_empty(&self) -> bool
pub fn translate(&self, point: &Point3D) -> Sphere
Trait Implementations
sourceimpl PartialEq<Sphere> for Sphere
impl PartialEq<Sphere> for Sphere
sourceimpl StaticType for Sphere
impl StaticType for Sphere
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Copy for Sphere
impl Eq for Sphere
Auto Trait Implementations
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnwindSafe for Sphere
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.