Table of Contents

Method DistanceSquared

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

DistanceSquared(Point, Point)

Calculates the squared distance between two points. Faster than Euclidean distance since no square root is taken.

public static double DistanceSquared(Point p1, Point p2)

Parameters

p1 Point

The first point.

p2 Point

The second point.

Returns

double

The squared Euclidean distance between p1 and p2.