Class Vincenty
The more precise Vincenty distance metric for geospatial points in meters compared to Haversine.
These metric requires a bit more computing and should be choose when a high precision is necessary.
Inheritance
System.Object
Vincenty
Implements
IMetric<System.Double[]>
IDistance<System.Double[]>
IMetric<System.Int32[]>
IDistance<System.Int32[]>
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Numerics.Distances
Assembly: Mars.Numerics.dll
Syntax
public class Vincenty : IMetric<double[]>, IDistance<double[]>, IDistance<double[], double[]>, IMetric<int[]>, IDistance<int[]>, IDistance<int[], int[]>, IMetric<Tuple<double, double>>, IDistance<Tuple<double, double>>, IDistance<Tuple<double, double>, Tuple<double, double>>, ICloneable
Methods
| Improve this Doc View SourceClone()
The more precise Vincenty distance metric for geospatial points in meters compared to Haversine.
These metric requires a bit more computing and should be choose when a high precision is necessary.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object |
Distance(Double[], Double[])
The more precise Vincenty distance metric for geospatial points in meters compared to Haversine.
These metric requires a bit more computing and should be choose when a high precision is necessary.
Declaration
public double Distance(double[] x, double[] y)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x | |
System.Double[] | y |
Returns
Type | Description |
---|---|
System.Double |
Distance(Int32[], Int32[])
The more precise Vincenty distance metric for geospatial points in meters compared to Haversine.
These metric requires a bit more computing and should be choose when a high precision is necessary.
Declaration
public double Distance(int[] x, int[] y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | x | |
System.Int32[] | y |
Returns
Type | Description |
---|---|
System.Double |
Distance(Tuple<Double, Double>, Tuple<Double, Double>)
The more precise Vincenty distance metric for geospatial points in meters compared to Haversine.
These metric requires a bit more computing and should be choose when a high precision is necessary.
Declaration
public double Distance(Tuple<double, double> x, Tuple<double, double> y)
Parameters
Type | Name | Description |
---|---|---|
System.Tuple<System.Double, System.Double> | x | |
System.Tuple<System.Double, System.Double> | y |
Returns
Type | Description |
---|---|
System.Double |
Implements
System.ICloneable