public override bool Equals(object obj) { if (!(obj is ExtSize)) { return(false); } ExtSize size = (ExtSize)obj; return(size.width == this.width && size.height == this.height); }
public ExtSize ToSize() { return(ExtSize.Truncate(this)); }
public static ExtSize Subtract(ExtSize sz1, ExtSize sz2) { return(new ExtSize(sz1.Width - sz2.Width, sz1.Height - sz2.Height)); }
public static ExtSize Add(ExtSize sz1, ExtSize sz2) { return(new ExtSize(sz1.Width + sz2.Width, sz1.Height + sz2.Height)); }
public static ExtPointF Subtract(ExtPointF pt, ExtSize sz) { return(new ExtPointF(pt.X - (float)sz.Width, pt.Y - (float)sz.Height)); }
public static ExtPointF Add(ExtPointF pt, ExtSize sz) { return(new ExtPointF(pt.X + (float)sz.Width, pt.Y + (float)sz.Height)); }
public static ExtPoint Subtract(ExtPoint pt, ExtSize sz) { return(new ExtPoint(pt.X - sz.Width, pt.Y - sz.Height)); }
public static ExtPoint Add(ExtPoint pt, ExtSize sz) { return(new ExtPoint(pt.X + sz.Width, pt.Y + sz.Height)); }