예제 #1
0
        public static FUnit[] ReadCvt(DataReader reader, TableRecord[] tables)
        {
            var index = FindTable(tables, FourCC.Cvt);

            if (index == -1)
            {
                return(null);
            }

            reader.Seek(tables[index].Offset);

            var results = new FUnit[tables[index].Length / sizeof(short)];

            for (var i = 0; i < results.Length; i++)
            {
                results[i] = (FUnit)reader.ReadInt16BE();
            }

            return(results);
        }
예제 #2
0
 public Point(FUnit x, FUnit y) => (X, Y, Type) = (x, y, PointType.OnCurve);
예제 #3
0
 public static FUnit Min(FUnit a, FUnit b)
 {
     return((FUnit)Math.Min(a.value, b.value));
 }