The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_math1
Class: None
Declaration: [1] function EuclideanDistance (x1,y1,x2,y2: double): double;
[2] function EuclideanDistance (P1, P2: TPointDouble): double;

The function EuclideanDistance returns the Euclidean distance between two points. Version [1] uses the individual coordinates [x1,y1] and [x2,y2] as parameters, version [2] uses double precision points.

Last Update: 2023-Feb-06