//Apache2, 2017-present, WinterDev //Apache2, 2014-2016, Samuel Carlsson, WinterDev namespace Typography.OpenFont { /// /// original glyph bounds /// 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 } }