[−][src]Function nannou::geom::line::join::miter::next_pair
pub fn next_pair<S>(
half_thickness: S,
point_a: &mut Option<Point2<S>>,
point_b: &mut Option<Point2<S>>,
next_point: Option<Point2<S>>
) -> Option<[Point2<S>; 2]> where
S: BaseFloat,
Determine the next vertex pair in the miter sequence given the two previous points and the next if one exists.
half_thickness
: half the thickness of the line.point_a
: the point in the sequence prior to the last point.point_b
: the last point in the sequence.next_point
: the next point in the sequence.
This function expects that point_a
is None
and point_b
is Some
(containing the first
point in the sequence) when beginning the sequence.
This function is used within both the VertexPairs
iterator and the polyline().vertices()
draw builder method.