[][src]Function nannou::geom::line::triangles

pub fn triangles<S>(
    a: Point2<S>,
    b: Point2<S>,
    half_thickness: S
) -> (Tri<S>, Tri<S>) where
    S: BaseFloat

Given two points and half the line thickness, return the two triangles that describe the line.