示例#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));
 }
示例#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));
        }