Пример #1
0
 public static Vector3 Lerp(Vector3 a, Vector3 b, float t)
 {
     return(new Vector3(DevMath.Lerp(a.x, b.x, t), DevMath.Lerp(a.y, b.y, t), DevMath.Lerp(a.z, b.z, t)));
 }
Пример #2
0
 public static Vector4 Lerp(Vector4 a, Vector4 b, float t)
 {
     return(new Vector4(DevMath.Lerp(a.x, b.x, t), DevMath.Lerp(a.y, b.y, t), DevMath.Lerp(a.z, b.z, t), DevMath.Lerp(a.w, b.w, t)));
 }
Пример #3
0
 public static Vector2 Lerp(Vector2 a, Vector2 b, float t)
 {
     return(new Vector2(DevMath.Lerp(a.x, b.x, t), DevMath.Lerp(a.y, b.y, t)));
 }