Struct line_drawing::octant::Octant
[−]
[src]
pub struct Octant { /* fields omitted */ }
A simple octant struct for transforming line points.
Methods
impl Octant
[src]
fn new<T>(start: Point<T>, end: Point<T>) -> Octant where
T: Sub<Output = T> + Neg<Output = T> + PartialOrd + Zero,
[src]
T: Sub<Output = T> + Neg<Output = T> + PartialOrd + Zero,
Get the relevant octant from a start and end point.
fn to<T: Neg<Output = T>>(&self, point: Point<T>) -> Point<T>
[src]
Convert a point to its position in the octant.
fn from<T: Neg<Output = T>>(&self, point: Point<T>) -> Point<T>
[src]
Convert a point from its position in the octant.