/// <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;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref='AbsoluteGraphicsPlatform.Metrics.AbsoluteLine'/>.
 /// </summary>
 public AbsoluteLine(AbsolutePoint point1, AbsolutePoint point2, float thickness)
 {
     this.x1        = point1.X;
     this.y1        = point1.Y;
     this.x2        = point2.X;
     this.y2        = point2.Y;
     this.thickness = thickness;
 }
 /// <summary>
 ///    Adjusts the location of this rectangle by the specified amount.
 /// </summary>
 public void Offset(AbsolutePoint pos) => Offset(pos.X, pos.Y);
 public bool Contains(AbsolutePoint pt) => Contains(pt.X, pt.Y);
Exemple #5
0
 /**
  * Create a new AbsoluteSize object from a point
  */
 /// <summary>
 ///    <para>
 ///       Initializes a new instance of the <see cref='AbsoluteGraphicsPlatform.Metrics.AbsoluteSize'/> class from
 ///       the specified <see cref='AbsoluteGraphicsPlatform.Metrics.AbsolutePoint'/>.
 ///    </para>
 /// </summary>
 public AbsoluteSize(AbsolutePoint pt)
 {
     width  = pt.X;
     height = pt.Y;
 }