public static FPVector2 Lerp(FPVector2 value1, FPVector2 value2, FP amount) { amount = FPMath.Clamp(amount, 0, 1); return(new FPVector2( FPMath.Lerp(value1.x, value2.x, amount), FPMath.Lerp(value1.y, value2.y, amount))); }
public static void LerpUnclamped(ref FPVector2 value1, ref FPVector2 value2, FP amount, out FPVector2 result) { result = new FPVector2( FPMath.Lerp(value1.x, value2.x, amount), FPMath.Lerp(value1.y, value2.y, amount)); }
public static FPVector2 LerpUnclamped(FPVector2 value1, FPVector2 value2, FP amount) { return(new FPVector2( FPMath.Lerp(value1.x, value2.x, amount), FPMath.Lerp(value1.y, value2.y, amount))); }