[][src]Function nannou::ui::prelude::widget::primitive::line::rect_corners

pub fn rect_corners(
    a: [f64; 2],
    b: [f64; 2],
    half_thickness: f64
) -> [[f64; 2]; 4]

Given two points and half the line thickness, return the four corners of the rectangle describing the line.