CGAL::squared_distance

#include <CGAL/constructions_d.h>

FT squared_distance ( Point_d<R> p, Point_d<R> q)
computes the square of the Euclidean distance between the two points p and q.
Precondition: The dimensions of p and q are the same.