Struct elma::Position [] [src]

pub struct Position<T> {
    pub x: T,
    pub y: T,
}

Shared position struct used in both sub-modules.

Examples

let vertex = elma::Position { x: 23.1928_f64, y: -199.200019_f64 };

Fields

X-position.

Y-position.

Trait Implementations

impl<T: Debug> Debug for Position<T>
[src]

Formats the value using the given formatter.

impl<T: Default> Default for Position<T>
[src]

Returns the "default value" for a type. Read more

impl<T: PartialEq> PartialEq for Position<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.