Function nannou::ui::widget::primitive::line::triangles[][src]

pub fn triangles(
    a: [f64; 2],
    b: [f64; 2],
    half_thickness: f64
) -> [Triangle<[f64; 2]>; 2]

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