示例#1
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);
示例#2
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);