Skip to main content

offset_point2

Function offset_point2 

Source
pub fn offset_point2(
    curve: &Curve2,
    distance: Scalar,
    t: Scalar,
) -> GeomResult<Point2>
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.