A struct that models a rectangle in 2-d cartesian coordinate space with double coordinates.
Namespace: yWorks.Canvas.Geometry.StructsAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
[TypeConverterAttribute(typeof(RectDConverter))] public struct RectD : IRectangle, ISize, IPoint |
| Visual Basic |
|---|
<TypeConverterAttribute(GetType(RectDConverter))> _ Public Structure RectD _ Implements IRectangle, ISize, IPoint |
Remarks
This struct differs from other possible implementation in the way negative Width
and Height properties are handled and interpreted.
Width and/or height values may be negative in which case the rectangle is considered empty
and non-existent. Empty rectangles are not considered in union-like
operations, whereas rectangles with Width and Height of 0.0d are.
This struct implements the IRectangle interface so that it can be used in methods
that require that interface.