Stores an ordered pair of doubles, typical the width and height of a RectD. More...
Public Member Functions | |
| Size2Dd (double width, double height) | |
| Creates a size with a given width and height . | |
| Size2Dd (Point2Dd pt) | |
| Creates a size from the given point's pt horizontal and vertical components. | |
| override string | ToString () |
| Gets the string representation of this size. | |
| override bool | Equals (object obj) |
Tests whether two objects are SizeD and equal. | |
| override int | GetHashCode () |
| Default implementation. | |
Static Public Member Functions | |
| static Size2Dd | Add (Size2Dd sz1, Size2Dd sz2) |
Adds the width and height of one SizeD structure width and height of another one. | |
| static Size2Dd | Subtract (Size2Dd sz1, Size2Dd sz2) |
Subtracts the width and height of one SizeD structure width and height of another one. | |
| static implicit | operator Size2Dd (Size2D sz) |
| Converts the given Size2D sz to a Size2Dd. | |
| static | operator Point2Dd (Size2Dd sz) |
| Converts the given sz to a Point2Dd. | |
| static Size2Dd | operator+ (Size2Dd sz1, Size2Dd sz2) |
Adds the width and height of one SizeD structure width and height of another one. | |
| static Size2Dd | operator- (Size2Dd sz1, Size2Dd sz2) |
Subtracts the width and height of one SizeD structure width and height of another one. | |
| static bool | operator== (Size2Dd sz1, Size2Dd sz2) |
| Tests whether two sizes are equal. | |
| static bool | operator!= (Size2Dd sz1, Size2Dd sz2) |
| Tests whether two sizes are unequal. | |
Static Public Attributes | |
| static readonly Size2Dd | Empty = new Size2Dd() |
Gets a SizeD with Width and Height value of 0. | |
Properties | |
| double | Width [get, set] |
| Gets/sets the horizontal component of the size. | |
| double | Height [get, set] |
| Gets/sets the vertical component of the size. | |
Stores an ordered pair of doubles, typical the width and height of a RectD.
| Size2Dd | ( | double | width, |
| double | height ) |
Creates a size with a given width and height .
| width | Horizontal component of the size. |
| height | Vertical component of the size. |
Creates a size from the given point's pt horizontal and vertical components.
| pt | Point to initialize the size with. |
Adds the width and height of one SizeD structure width and height of another one.
| sz1 | First size to add. |
| sz2 | Second size to add. |
SizeD from the addition operation.| override bool Equals | ( | object | obj | ) |
Tests whether two objects are SizeD and equal.
| obj | Object to test. |
true if they are exactly equal; false if not. | override int GetHashCode | ( | ) |
Default implementation.
Tests whether two sizes are unequal.
| sz1 | First size to test. |
| sz2 | Second size to test. |
true if they are unequal; false if not. Adds the width and height of one SizeD structure width and height of another one.
| sz1 | First size to add. |
| sz2 | Second size to add. |
SizeD from the addition operation.Subtracts the width and height of one SizeD structure width and height of another one.
| sz1 | First size to subtract. |
| sz2 | Second size to subtract. |
SizeD from the subtract operation.Tests whether two sizes are equal.
| sz1 | First size to test. |
| sz2 | Second size to test. |
true if they are exactly equal; false if not. Subtracts the width and height of one SizeD structure width and height of another one.
| sz1 | First size to subtract. |
| sz2 | Second size to subtract. |
SizeD from the subtract operation.| override string ToString | ( | ) |
Gets the string representation of this size.