コード例 #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));
 }