Skip to main content

calc_orthogonal

Function calc_orthogonal 

Source
pub fn calc_orthogonal(
    thickness: f64,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
) -> (f64, f64)
Expand description

Calculate the orthogonal displacement vector of magnitude thickness perpendicular to the line (x1,y1)→(x2,y2).