Vector3Lerp method

  1. @override
Vector3D Vector3Lerp(
  1. Vector3D v1,
  2. Vector3D v2,
  3. double amount
)
override

Calculate linear interpolation between two vectors

Implementation

@override
Vector3D Vector3Lerp(
  Vector3D v1,
  Vector3D v2,
  double amount,
) => $.Vector3$.Extract3(
  (p) => _ffi.Vector3Lerp(
    $.Vector3$.Ref1(v1).asNativePointer<Vector3C>().ref,
    $.Vector3$.Ref2(v2).asNativePointer<Vector3C>().ref,
    amount,
  ).toDart(p.asNativePointer()),
);