Example #1
0
 /// <summary>
 /// Translates a <see cref='PointD'/> by a given <see cref='SizeD'/>
 /// </summary>
 public static PointD Add(PointD pt, SizeD sz) => new PointD(pt.X + sz.Width, pt.Y + sz.Height);
Example #2
0
 /// <summary>
 /// Translates a <see cref='PointD'/> by the negative of a given <see cref='SizeD'/>
 /// </summary>
 public static PointD Subtract(PointD pt, SizeD sz) => new PointD(pt.X - sz.Width, pt.Y - sz.Height);
Example #3
0
 /// <summary>
 /// Get whether the <paramref name="other"/> is the same as this <see cref="PointD"/>
 /// </summary>
 /// <param name="other">The other <see cref="PointD"/> to compare</param>
 /// <returns>Whether the <paramref name="other"/> is the same as this <see cref="PointD"/></returns>
 public bool Equals(PointD other) => this == other;