[][src]Struct duckduckgeo::grid::GridViewPort

pub struct GridViewPort {
    pub spacing: WorldNum,
    pub origin: Vec2<WorldNum>,
}

Fields

spacing: WorldNumorigin: Vec2<WorldNum>

Methods

impl GridViewPort[src]

pub fn to_world_topleft(&self, pos: Vec2<GridNum>) -> Vec2<WorldNum>[src]

pub fn to_world_center(&self, pos: Vec2<GridNum>) -> Vec2<WorldNum>[src]

pub fn to_grid_mod(&self, pos: Vec2<WorldNum>) -> Vec2<WorldNum>[src]

pub fn to_grid(&self, pos: Vec2<WorldNum>) -> Vec2<GridNum>[src]

pub fn cell_radius(&self) -> WorldNum[src]

Trait Implementations

impl Debug for GridViewPort[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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>,