Skip to main content

offset_point2

Function offset_point2 

Source
pub fn offset_point2(
    curve: &Curve2,
    distance: f64,
    t: f64,
) -> Result<DVec2, GeomError>
Expand description

The point of the offset by distance to the left of a 2D curve at its parameter t: B(t) + d normalise(Z x B'(t)).

§Errors

The basis’s evaluation errors, and GeomError::Degenerate where its tangent vanishes.