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