Exemplo n.º 1
0
 public static F64Vec2 Lerp(F64Vec2 a, F64Vec2 b, F64 t)
 {
     long tr = t.Raw;
     return new F64Vec2(
         Fixed64.Lerp(a.RawX, b.RawX, tr),
         Fixed64.Lerp(a.RawY, b.RawY, tr));
 }
Exemplo n.º 2
0
        public static F64Vec3 Lerp(F64Vec3 a, F64Vec3 b, F64 t)
        {
            long tr = t.Raw;

            return(new F64Vec3(
                       Fixed64.Lerp(a.RawX, b.RawX, tr),
                       Fixed64.Lerp(a.RawY, b.RawY, tr),
                       Fixed64.Lerp(a.RawZ, b.RawZ, tr)));
        }
Exemplo n.º 3
0
        public static F64Vec4 Lerp(F64Vec4 a, F64Vec4 b, F64 t)
        {
            long tr = t.Raw;

            return(new F64Vec4(
                       Fixed64.Lerp(a.RawX, b.RawX, tr),
                       Fixed64.Lerp(a.RawY, b.RawY, tr),
                       Fixed64.Lerp(a.RawZ, b.RawZ, tr),
                       Fixed64.Lerp(a.RawW, b.RawW, tr)));
        }