[][src]Function nannou::geom::line::cap::square::quad

pub fn quad<S>(
    line_corner_a: Point2<S>,
    line_corner_b: Point2<S>,
    protrusion: S
) -> Quad<Point2<S>> where
    S: BaseFloat

Produces the Quad describing this line cap.

protrusion is the distance past the line end over which the Quad should protrude. This is normally equal to half of the line's thickness.