Trait GetXY

Source
pub trait GetXY {
    // Required methods
    fn x(&self) -> f64;
    fn y(&self) -> f64;
}
Expand description

Trait to extract the x and y values

Required Methods§

Source

fn x(&self) -> f64

Returns the x value

Source

fn y(&self) -> f64

Returns the y value

Implementors§