Ejemplo n.º 1
0
 public static FVector2 Lerp(FVector2 from, FVector2 to, fint t)
 {
     t = FMath.Clamp01(t);
     return(new FVector2(from.X + (to.X - from.X) * t, from.Y + (to.Y - from.Y) * t));
 }
Ejemplo n.º 2
0
        public static FVector3 Lerp(FVector3 from, FVector3 to, fint t)
        {
            t = FMath.Clamp01(t);

            return(new FVector3(from.x + (to.x - from.x) * t, from.y + (to.y - from.y) * t, from.z + (to.z - from.z) * t));
        }