Class RectangleWrapper<TObject>
Rectangle wrapper.
Inheritance
System.Object
RectangleWrapper<TObject>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GraphShape.Algorithms.OverlapRemoval
Assembly: GraphShape.dll
Syntax
public class RectangleWrapper<TObject>
Type Parameters
Name | Description |
---|---|
TObject |
Constructors
| Improve this Doc View SourceRectangleWrapper(TObject, Rect)
Initializes a new instance of the RectangleWrapper<TObject> class.
Declaration
public RectangleWrapper(TObject id, Rect rectangle)
Parameters
Type | Name | Description |
---|---|---|
TObject | id | Rectangle id (at the end of the overlap removal, we must know which rectangle is associated to which object. The id will be resolved at that time. |
Rect | rectangle | Rectangle to wrap. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Fields
| Improve this Doc View SourceRectangle
Wrapped rectangle.
Declaration
public Rect Rectangle
Field Value
Type | Description |
---|---|
Rect |
Properties
| Improve this Doc View SourceCenter
Rectangle center.
Declaration
public Point Center { get; }
Property Value
Type | Description |
---|---|
Point |
CenterX
Rectangle center on X axis.
Declaration
public double CenterX { get; }
Property Value
Type | Description |
---|---|
System.Double |
CenterY
Rectangle center on Y axis.
Declaration
public double CenterY { get; }
Property Value
Type | Description |
---|---|
System.Double |
Id
Rectangle Id.
Declaration
public TObject Id { get; }
Property Value
Type | Description |
---|---|
TObject |