/// <summary> /// <para> /// Initializes a new instance of the <see cref='AbsoluteGraphicsPlatform.Metrics.AbsoluteRectangle'/> /// class with the specified location /// and size. /// </para> /// </summary> public AbsoluteRectangle(AbsolutePoint location, AbsoluteSize size) { x = location.X; y = location.Y; width = size.Width; height = size.Height; }
/// <summary> /// <para> /// Translates a <see cref='AbsolutePoint'/> by the negative of a given <see cref='AbsoluteSize'/> . /// </para> /// </summary> public static AbsolutePoint Subtract(AbsolutePoint pt, AbsoluteSize sz) => new AbsolutePoint(pt.X - sz.Width, pt.Y - sz.Height);
/// <summary> /// Inflates this <see cref='AbsoluteGraphicsPlatform.Metrics.AbsoluteRectangle'/> by the specified amount. /// </summary> public void Inflate(AbsoluteSize size) => Inflate(size.Width, size.Height);
/// <summary> /// <para> /// Translates a <see cref='AbsolutePoint'/> by a given <see cref='AbsoluteSize'/> . /// </para> /// </summary> public static AbsolutePoint Add(AbsolutePoint pt, AbsoluteSize sz) => new AbsolutePoint(pt.X + sz.Width, pt.Y + sz.Height);