[][src]Struct duckduckgeo::bot::Dist

pub struct Dist { /* fields omitted */ }

A struct with cached calculations based off of a radius.

Methods

impl Dist[src]

pub fn new(dis: f32) -> Dist[src]

pub fn dis(&self) -> f32[src]

Returns the rdius

pub fn dis2(&self) -> f32[src]

Returns the cached radius*2.0

pub fn dis2_squared(&self) -> f32[src]

Returns the cached radius.powi(2)

Trait Implementations

impl Clone for Dist[src]

impl Copy for Dist[src]

impl Debug for Dist[src]

Auto Trait Implementations

impl Send for Dist

impl Sync for Dist

impl Unpin for Dist

impl UnwindSafe for Dist

impl RefUnwindSafe for Dist

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,