Skip to main content

offset_point3

Function offset_point3 

Source
pub fn offset_point3(
    curve: &Curve3,
    distance: f64,
    reference_direction: DVec3,
    t: f64,
) -> Result<DVec3, GeomError>
Expand description

The point of the offset by distance along normalise(V x B'(t)) of a 3D curve at its parameter t, V the reference direction.

§Errors

The basis’s evaluation errors, and GeomError::Degenerate where its tangent vanishes or lies along V, or V is zero or not finite.