Coordinate Class |
Namespace: DHI.Mike1D.Generic.Spatial.Geometry
public class Coordinate : ICoordinate, IComparable<ICoordinate>, IEquatable<ICoordinate>
The Coordinate type exposes the following members.
| Name | Description | |
|---|---|---|
| Coordinate | Initializes a new instance of the Coordinate class |
| Name | Description | |
|---|---|---|
| M |
Parametric coordinate, usually chainage.
| |
| X |
X coordinate.
| |
| Y |
Y coordinate
| |
| Z |
Z coordinate
|
| Name | Description | |
|---|---|---|
| Clone |
Clone this vertex coordiante
| |
| CompareTo(Object) |
Compares to aother obj. If ICoordinate, uses the comparison order M (chainage), X, Y, Z
| |
| CompareTo(ICoordinate) |
Compares two ICoordinate. The comparison order is M (chainage), X, Y, Z
| |
| Create(ICoordinate) |
Create a coordinate based on the incoming coordinate, making a copy.
| |
| Create(CoordinateType, Double) |
Create a coordinate of the given type. It must have a number of input
argument matching the coordtype
| |
| CreateM |
Create coordinate with the given values
| |
| CreateX |
Create coordinate with the given values
| |
| CreateXM |
Create coordinate with the given values
| |
| CreateXY |
Create coordinate with the given values
| |
| CreateXYM |
Create coordinate with the given values
| |
| CreateXYZ |
Create coordinate with the given values
| |
| CreateXYZM |
Create coordinate with the given values
| |
| DistanceSqXY |
Distance squared in XY coordinates.
(does not take the square root for - optimizations when eg. searching for smallest distance)
| |
| DistanceSqXYZ |
Distance squared in XYZ coordinates.
(does not take the square root - for optimizations when eg. searching for smallest distance)
| |
| DistanceXY |
Distance in XY coordinates.
| |
| DistanceXYZ |
Distance in XYZ coordinates.
| |
| Equals(Object) | (Overrides ObjectEquals(Object).) | |
| Equals(ICoordinate) |
Indicates whether the current object is equal to another object of the same type.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode |
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.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasM |
Returns true of the coordType includes the M | |
| HasZ |
Returns true of the coordType includes the M | |
| Interpolate |
Interpolate between two coordinates
| |
| InterpolateM |
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.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SUndefinedValue |
The undefined value (static function)
| |
| ToString | Returns a string that represents the current object. (Overrides ObjectToString.) | |
| UndefinedValue |
The undefined value
|
| Name | Description | |
|---|---|---|
| Addition(Coordinate, ICoordinate) |
Add two coordinates
| |
| Addition(Coordinate, Vector) |
Add vector to coordinate and return a new coordinate.
|
| Name | Description | |
|---|---|---|
| AsCoordinate |
Return a Coordinate from an ICoordinate. If it is already an
Coordinate, this is returned, i.e. it is not copied.
(Defined by SpatialExtensions.) | |
| DistanceSqXY |
Distance squared in XY coordinates.
(Defined by SpatialExtensions.) | |
| DistanceXY |
Distance in XY coordinates.
(Defined by SpatialExtensions.) |