A struct that models a rectangle in 2-d cartesian coordinate space with double coordinates.
Namespace: yWorks.Canvas.Geometry.StructsAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
[ObfuscationAttribute(StripAfterObfuscation = false, Exclude = true, ApplyToMembers = true)] [TypeConverterAttribute(typeof(RectDConverter))] public struct RectD : IRectangle, ISize, IPoint |
| Visual Basic |
|---|
<ObfuscationAttribute(StripAfterObfuscation := False, Exclude := True, _ ApplyToMembers := True)> _ <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.