You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curve: add ParamCurveTangent for pointwise tangents
Add `ParamCurveTangent` as an additive companion to `ParamCurveDeriv` for code that needs a tangent vector at a parameter value without requiring a derivative curve object.
Place the new trait alongside the other curve traits in `param_curve.rs`, implement it for `Line`, `ConstPoint`, `QuadBez`, `CubicBez`, `Arc`, and `PathSeg`, and use it in internal call sites that were spelling pointwise tangent queries via `deriv().eval(t).to_vec2()`.
Add tests that check the new tangent API against the existing derivative-curve behavior, cover degenerate normalization cases, and validate `Arc`'s tangent formula and reversed-sweep behavior.
0 commit comments