Performs vector addition of two objects.
/// <summary> /// Center between two sizes /// </summary> /// <param name="p1"></param> /// <param name="p2"></param> /// <returns></returns> public static SizeF Center(SizeF p1, SizeF p2) => (p2.Add(p1)).Scale(0.5f);
/// <summary>Adds the width and height of one <see cref="T:System.Drawing.SizeF" /> structure to the width and height of another <see cref="T:System.Drawing.SizeF" /> structure.</summary> /// <returns>A <see cref="T:System.Drawing.Size" /> structure that is the result of the addition operation.</returns> /// <param name="sz1">The first <see cref="T:System.Drawing.SizeF" /> structure to add. </param> /// <param name="sz2">The second <see cref="T:System.Drawing.SizeF" /> structure to add. </param> /// <filterpriority>3</filterpriority> public static SizeF operator +(SizeF sz1, SizeF sz2) { return(SizeF.Add(sz1, sz2)); }