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::new(23.1928_f64, -199.200019_f64);
Fields
x: T
X-position.
y: T
Y-position.
Methods
impl<T> Position<T>
[src]
impl<T> Position<T>
Trait Implementations
impl<T: Debug> Debug for Position<T>
[src]
impl<T: Debug> Debug for Position<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Default> Default for Position<T>
[src]
impl<T: Default> Default for Position<T>
impl<T: PartialEq> PartialEq for Position<T>
[src]
impl<T: PartialEq> PartialEq for Position<T>
fn eq(&self, other: &Position<T>) -> bool
[src]
fn eq(&self, other: &Position<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Position<T>) -> bool
[src]
fn ne(&self, other: &Position<T>) -> bool
This method tests for !=
.
impl<T: Clone> Clone for Position<T>
[src]
impl<T: Clone> Clone for Position<T>