[][src]Struct libraymarcher::Sphere

pub struct Sphere<C> {
    pub center: Vec3,
    pub radius: f64,
    pub color: C,
}

Simple sphere distance field

Fields

center: Vec3radius: f64color: C

Trait Implementations

impl<C: Color> SceneObject<C> for Sphere<C>[src]

fn distance_to(&self, point: Vec3, _: f64) -> f64[src]

TODO: This is messed up, fix for modular raymarching...

Auto Trait Implementations

impl<C> RefUnwindSafe for Sphere<C> where
    C: RefUnwindSafe

impl<C> Send for Sphere<C> where
    C: Send

impl<C> Sync for Sphere<C> where
    C: Sync

impl<C> Unpin for Sphere<C> where
    C: Unpin

impl<C> UnwindSafe for Sphere<C> where
    C: UnwindSafe

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.