Class Coordinates
Useful utility functions for handling Coordinate objects.
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
public static class Coordinates
Methods
| Improve this Doc View SourceCreate(Int32)
Factory method providing access to common Coordinate implementations.
Declaration
public static Coordinate Create(int dimension)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dimension |
Returns
Type | Description |
---|---|
Coordinate | created coordinate |
Create(Int32, Int32)
Factory method providing access to common Coordinate implementations.
Declaration
public static Coordinate Create(int dimension, int measures)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dimension | |
Int32 | measures |
Returns
Type | Description |
---|---|
Coordinate | created coordinate |
Dimension(Coordinate)
Determine dimension based on subclass of Coordinate.
Declaration
public static int Dimension(Coordinate coordinate)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coordinate | supplied coordinate |
Returns
Type | Description |
---|---|
Int32 | number of ordinates recorded |
Measures(Coordinate)
Determine number of measures based on subclass of Coordinate.
Declaration
public static int Measures(Coordinate coordinate)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coordinate | supplied coordinate |
Returns
Type | Description |
---|---|
Int32 | number of measures recorded |