[−][src]Struct pokemon_rust::map::coordinates::WorldCoordinates

pub struct WorldCoordinates(i32, i32);

Represents a position expressed in World Coordinates. It typically refers to the center of a tile.

Methods

impl WorldCoordinates[src]

pub fn new(x: i32, y: i32) -> WorldCoordinates[src]

pub fn origin() -> WorldCoordinates[src]

pub fn to_transform(&self) -> Transform[src]

pub fn offset_by_direction(&self, direction: &Direction) -> WorldCoordinates[src]

pub fn with_offset(&self, offset: &WorldOffset) -> WorldCoordinates[src]

pub fn to_world_offset(&self) -> WorldOffset[src]

pub fn corner(&self) -> WorldCoordinates[src]

Returns the bottom-left corner of the tile that this position refers to.

Trait Implementations

impl Clone for WorldCoordinates[src]

impl CoordinateSystem for WorldCoordinates[src]

type CoordinateType = i32

impl Default for WorldCoordinates[src]

Auto Trait Implementations

impl RefUnwindSafe for WorldCoordinates

impl Send for WorldCoordinates

impl Sync for WorldCoordinates

impl Unpin for WorldCoordinates

impl UnwindSafe for WorldCoordinates

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float, 
[src]

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

impl<T> Any for T where
    T: Any, 

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

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

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

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any + Send + Sync, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default, 

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.

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