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: T
X-position.
y: T
Y-position.
Trait Implementations
impl<T: PartialEq> PartialEq for Position<T>
[src]
fn eq(&self, __arg_0: &Position<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position<T>) -> bool
This method tests for !=
.