Click or drag to resize

Coordinate Class

Default implementation of ICoordinate Returns UndefinedValue if coordinate has not been set.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.Generic.Spatial.GeometryCoordinate
    DHI.Mike1D.NetworkDataAccessDigiPoint

Namespace:  DHI.Mike1D.Generic.Spatial.Geometry
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public class Coordinate : ICoordinate, IComparable<ICoordinate>, 
	IEquatable<ICoordinate>

The Coordinate type exposes the following members.

Constructors
  NameDescription
Public methodCoordinate
Initializes a new instance of the Coordinate class
Top
Properties
  NameDescription
Public propertyM
Parametric coordinate, usually chainage.
Public propertyX
X coordinate.
Public propertyY
Y coordinate
Public propertyZ
Z coordinate
Top
Methods
  NameDescription
Public methodClone
Clone this vertex coordiante
Public methodCompareTo(Object)
Compares to aother obj. If ICoordinate, uses the comparison order M (chainage), X, Y, Z
Public methodCompareTo(ICoordinate)
Compares two ICoordinate. The comparison order is M (chainage), X, Y, Z
Public methodStatic memberCreate(ICoordinate)
Create a coordinate based on the incoming coordinate, making a copy.
Public methodStatic memberCreate(CoordinateType, Double)
Create a coordinate of the given type. It must have a number of input argument matching the coordtype
Public methodStatic memberCreateM
Create coordinate with the given values
Public methodStatic memberCreateX
Create coordinate with the given values
Public methodStatic memberCreateXM
Create coordinate with the given values
Public methodStatic memberCreateXY
Create coordinate with the given values
Public methodStatic memberCreateXYM
Create coordinate with the given values
Public methodStatic memberCreateXYZ
Create coordinate with the given values
Public methodStatic memberCreateXYZM
Create coordinate with the given values
Public methodDistanceSqXY
Distance squared in XY coordinates. (does not take the square root for - optimizations when eg. searching for smallest distance)
Public methodDistanceSqXYZ
Distance squared in XYZ coordinates. (does not take the square root - for optimizations when eg. searching for smallest distance)
Public methodDistanceXY
Distance in XY coordinates.
Public methodDistanceXYZ
Distance in XYZ coordinates.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Public methodEquals(ICoordinate)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHasM
Returns true of the coordType includes the M
Public methodStatic memberHasZ
Returns true of the coordType includes the M
Public methodStatic memberInterpolate
Interpolate between two coordinates
Public methodStatic memberInterpolateM
Interpolate a coordinate from the c1-c2 line, based on the m value. In case of m is outside the span of m values of c1 and c2, extrapolation is performed. In case c1 and c2 has the same m value, null is returned.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberSUndefinedValue
The undefined value (static function)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodUndefinedValue
The undefined value
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Coordinate, ICoordinate)
Add two coordinates
Public operatorStatic memberAddition(Coordinate, Vector)
Add vector to coordinate and return a new coordinate.
Top
Extension Methods
  NameDescription
Public Extension MethodAsCoordinate
Return a Coordinate from an ICoordinate. If it is already an Coordinate, this is returned, i.e. it is not copied.
(Defined by SpatialExtensions.)
Public Extension MethodDistanceSqXY
Distance squared in XY coordinates.
(Defined by SpatialExtensions.)
Public Extension MethodDistanceXY
Distance in XY coordinates.
(Defined by SpatialExtensions.)
Top
See Also