AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPoint.DistanceSq Method (TAgkPoint, TAgkPoint)

Calculates the squared distance between P1 and P2. Faster than Distance when you only need to compare distances.

Syntax
Pascal
class function DistanceSq(const P1: TAgkPoint; const P2: TAgkPoint): Single; overload;
Parameters 
Description 
const P1: TAgkPoint 
the first point. 
const P2: TAgkPoint 
the second point. 

The squared distance between P1 and P2.

Copyright (c) 2012. All rights reserved.