Class LinearRing
A LinearRing is a LineString that is both closed and simple.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mapsui.Geometries
Assembly: Mapsui.Geometries.dll
Syntax
public class LinearRing : LineString, IGeometry, IEquatable<Geometry>
Constructors
| Improve this Doc View SourceLinearRing()
Initializes an instance of a LinearRing
Declaration
public LinearRing()
LinearRing(IEnumerable<Point>)
Initializes an instance of a LinearRing from a set of vertices
Declaration
public LinearRing(IEnumerable<Point> vertices)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Point> | vertices |
LinearRing(IEnumerable<Double[]>)
Initializes an instance of a LinearRing
Declaration
public LinearRing(IEnumerable<double[]> points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Double[]> | points |
Properties
| Improve this Doc View SourceArea
Returns the area of the LinearRing
Declaration
public double Area { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceClone()
Return a copy of this geometry
Declaration
public LinearRing Clone()
Returns
Type | Description |
---|---|
LinearRing | Copy of Geometry |
GetLineString()
Returns a clone of the LinearRing as LineString
Declaration
public LineString GetLineString()
Returns
Type | Description |
---|---|
LineString | LineString |
IsCCW()
Tests whether a ring is oriented counter-clockwise.
Declaration
public bool IsCCW()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if ring is oriented counter-clockwise. |
IsPointWithin(Point)
Returns true of the Point 'p' is within the instance of this ring
Declaration
public bool IsPointWithin(Point p)
Parameters
Type | Name | Description |
---|---|---|
Point | p |
Returns
Type | Description |
---|---|
System.Boolean |
Rotate(Double)
Declaration
public LinearRing Rotate(double degrees)
Parameters
Type | Name | Description |
---|---|---|
System.Double | degrees |
Returns
Type | Description |
---|---|
LinearRing |
Rotate(Double, Point)
Declaration
public LinearRing Rotate(double degrees, Point center)
Parameters
Type | Name | Description |
---|---|---|
System.Double | degrees | |
Point | center |
Returns
Type | Description |
---|---|
LinearRing |
Implements
System.IEquatable<T>