12345678910111213141516171819202122232425262728293031323334 |
- //Apache2, 2017-present, WinterDev
- //Apache2, 2014-2016, Samuel Carlsson, WinterDev
- namespace Typography.OpenFont
- {
- /// <summary>
- /// original glyph bounds
- /// </summary>
- public readonly struct Bounds
- {
- //TODO: will be changed to => public readonly struct Bounds
- public static readonly Bounds Zero = new Bounds(0, 0, 0, 0);
- public Bounds(short xmin, short ymin, short xmax, short ymax)
- {
- XMin = xmin;
- YMin = ymin;
- XMax = xmax;
- YMax = ymax;
- }
- public short XMin { get; }
- public short YMin { get; }
- public short XMax { get; }
- public short YMax { get; }
- #if DEBUG
- public override string ToString()
- {
- return "(" + XMin + "," + YMin + "," + XMax + "," + YMax + ")";
- }
- #endif
- }
- }
|