Polygon Class

A polygon is a set of 2-D points.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class Polygon
Inheritance
Object    Polygon

Constructors

PolygonInitializes a new instance of the Polygon class

Properties

Points List of all points in polygon
XMax Right edge of the polygon
XMin Left edge of the polygon
YMax Maximum y-value for the polygon (top level)
YMin Minimum y-value for the polygon (bottom level)

Methods

AddPoint(XYPair) Add a point to the polygon
AddPoint(Double, Double) Add a point to the polygon
CheckIfSimple Check if polygon is simple.
Contains Check if polygon contains point.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also