Vector3CubicHermite method

  1. @override
Vector3D Vector3CubicHermite(
  1. Vector3D v1,
  2. Vector3D tangent1,
  3. Vector3D v2,
  4. Vector3D tangent2,
  5. double amount,
)
override

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()),
);