tangentAt method
The unit tangent at natural parameter t (clamped to 0..1).
Implementation
@override
Vector3 tangentAt(double t) {
final (segment, _) = _segmentOf(t, _points.length - 1);
final direction = _points[segment + 1] - _points[segment];
if (direction.length2 < 1e-12) return Vector3(1.0, 0.0, 0.0);
return direction.normalized();
}