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); }
public Point(FUnit x, FUnit y) => (X, Y, Type) = (x, y, PointType.OnCurve);
public static FUnit Min(FUnit a, FUnit b) { return((FUnit)Math.Min(a.value, b.value)); }