[][src]Struct texel_types::Position

pub struct Position {
    pub x: i32,
    pub y: i32,
    pub z: i32,
}

3D position

Fields

x: i32y: i32z: i32

Implementations

impl Position[src]

pub fn apply(&mut self, translation: Translation, bounds: Bounds) -> bool[src]

Applies given Translation to this Position with regards to the provided Bounds area. If Bounds is binding ensures position does not reach outside.

Trait Implementations

impl Add<Position2D> for Position[src]

type Output = Position

The resulting type after applying the + operator.

impl Add<i32> for Position[src]

type Output = Position

The resulting type after applying the + operator.

impl AddAssign<Position2D> for Position[src]

impl AddAssign<i32> for Position[src]

impl Clone for Position[src]

impl Copy for Position[src]

impl Debug for Position[src]

impl Default for Position[src]

impl Display for Position[src]

impl Eq for Position[src]

impl<'_> From<&'_ Position> for Position2D[src]

impl<'_> From<&'_ mut Position> for Position2D[src]

impl From<Position> for Position2D[src]

impl PartialEq<Position> for Position[src]

impl StructuralEq for Position[src]

impl StructuralPartialEq for Position[src]

impl Sub<Position> for Position[src]

type Output = Position

The resulting type after applying the - operator.

impl Sub<Position> for Position2D[src]

type Output = Position2D

The resulting type after applying the - operator.

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.