Skip to main content

dilate_triangle

Function dilate_triangle 

Source
pub fn dilate_triangle(
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
    x3: f64,
    y3: f64,
    d: f64,
) -> ([f64; 6], [f64; 6])
Expand description

Dilate a triangle by distance d, producing 6 output points (two per edge). Returns ([x0..x5], [y0..y5]).