GetSplinePointCatmullRom method
Get (evaluate) spline point: Catmull-Rom
Implementation
@override
Vector2D GetSplinePointCatmullRom(
Vector2D p1,
Vector2D p2,
Vector2D p3,
Vector2D p4,
double t,
) => $.Vector2$.Extract5(
(p) => _ffi.GetSplinePointCatmullRom(
$.Vector2$.Ref1(p1).asNativePointer<Vector2C>().ref,
$.Vector2$.Ref2(p2).asNativePointer<Vector2C>().ref,
$.Vector2$.Ref3(p3).asNativePointer<Vector2C>().ref,
$.Vector2$.Ref4(p4).asNativePointer<Vector2C>().ref,
t,
).toDart(p.asNativePointer()),
);