Function conrod_core::widget::primitive::line::rect_corners[][src]

pub fn rect_corners(a: Point, b: Point, half_thickness: Scalar) -> [Point; 4]
Expand description

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