[−][src]Trait pathtracer::traits::Location
Enables the structure to be located by X or Y.
Required methods
fn position(&self) -> Coordinate
Retrieves the position Coordinates.
Provided methods
fn eq<L: Location>(&self, other: &L) -> bool
Returns if the positions are equal or not.
fn x(&self) -> i16
Retrieves the X coordinate.
fn y(&self) -> i16
Retrieves the Y coordinate.
fn sum(&self) -> i16
Returns the sum of the x and y value.