Vector4Lerp method

  1. @override
Vector4D Vector4Lerp(
  1. Vector4D v1,
  2. Vector4D v2,
  3. double amount
)
override

Calculate linear interpolation between two vectors

Implementation

@override
Vector4D Vector4Lerp(
  Vector4D v1,
  Vector4D v2,
  double amount,
) => $.Vector4$.Extract3(
  (p) => _ffi.Vector4Lerp(
    $.Vector4$.Ref1(v1).asNativePointer<Vector4C>().ref,
    $.Vector4$.Ref2(v2).asNativePointer<Vector4C>().ref,
    amount,
  ).toDart(p.asNativePointer()),
);