Table of Contents

Method GetDistanceSquaredTo

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetDistanceSquaredTo(GeoPoint2, GeoPoint2)

Calculates the squared Euclidean distance between two points.

public static double GetDistanceSquaredTo(GeoPoint2 p1, GeoPoint2 p2)

Parameters

p1 GeoPoint2

The first point.

p2 GeoPoint2

The second point.

Returns

double

The squared Euclidean distance between the two points.