Vector3CubicHermite method
Calculate cubic hermite interpolation between two vectors and their tangents as described in the GLTF 2.0 specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#interpolation-cubic
Implementation
@override
Vector3D Vector3CubicHermite(
Vector3D v1,
Vector3D tangent1,
Vector3D v2,
Vector3D tangent2,
double amount,
) => $.Vector3$.Extract5(
(p) => _ffi.Vector3CubicHermite(
$.Vector3$.Ref1(v1).asNativePointer<Vector3C>().ref,
$.Vector3$.Ref2(tangent1).asNativePointer<Vector3C>().ref,
$.Vector3$.Ref3(v2).asNativePointer<Vector3C>().ref,
$.Vector3$.Ref4(tangent2).asNativePointer<Vector3C>().ref,
amount,
).toDart(p.asNativePointer()),
);