GeographicPosition.EqualPosition(GeographicPosition, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true if the two positions are (almost) equal. This ignores the altitude.
public bool EqualPosition (Iot.Device.Common.GeographicPosition position, double delta = 1E-08);
member this.EqualPosition : Iot.Device.Common.GeographicPosition * double -> bool
Public Function EqualPosition (position As GeographicPosition, Optional delta As Double = 1E-08) As Boolean
Parameters
- position
- GeographicPosition
Position to compare with
- delta
- Double
Allowed delta, in degrees
Returns
True if the two positions are closer than the delta. The default value is around 1cm
Remarks
This does a simple comparison based on the floating point values, it should not be used with large deltas. To get the distance between two positions, use DistanceTo(GeographicPosition, GeographicPosition) instead.