Struct rs_math3d::primitives::Sphere3[][src]

#[repr(C)]pub struct Sphere3<T: FloatScalar> {
    pub center: Vector3<T>,
    pub radius: T,
}

Sphere3

Fields

center: Vector3<T>radius: T

Implementations

impl<T: FloatScalar> Sphere3<T>[src]

pub fn new(center: Vector3<T>, radius: T) -> Self[src]

Trait Implementations

impl<T: Clone + FloatScalar> Clone for Sphere3<T>[src]

impl<T: Copy + FloatScalar> Copy for Sphere3<T>[src]

impl<T: FloatScalar> Intersect<Sphere3<T>> for Box3<T>[src]

impl<T: FloatScalar> Intersect<Tri3<T>> for Sphere3<T>[src]

Auto Trait Implementations

impl<T> Send for Sphere3<T> where
    T: Send
[src]

impl<T> Sync for Sphere3<T> where
    T: Sync
[src]

impl<T> Unpin for Sphere3<T> where
    T: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.