MCL 1.3.5
Calculates the distance between this set of coordinates and another.
Return
The distance between the two locations in meters.
Parameters
The other location from which the distance is computed.
Calculates the distance between this and a given set of coordinates.
This function uses a planar approximation via LocalTangentPlane, making it computationally efficient but accurate only for short distances (e.g., within a few kilometers). For long-range calculations or higher accuracy over large areas, use Geodesy.distanceHaversine or Geodesy.distanceVincenty.
Performance Note: This method instantiates a new LocalTangentPlane on every call. If you are calculating distances from this point to many different locations, it is more efficient to create a single LocalTangentPlane instance using this point as the origin and call LocalTangentPlane.distance repeatedly.
Return
The distance between the two locations in meters.
Parameters
The longitude of the target location in degrees.
The latitude of the target location in degrees.