#include "vnl/vnl_math.h"
#include <iostream>
int main(int, char *[])
{
using CoordType = double;
p0[0] = 0.0;
p0[1] = 0.0;
p0[2] = 0.0;
p1[0] = 1.0;
p1[1] = 1.0;
p1[2] = 1.0;
std::cout << "Dist: " << dist << std::endl;
if( dist != p1.EuclideanDistanceTo(p0) )
{
std::cerr << "p0.EuclideanDistanceTo(p1) != p1.EuclideanDistanceTo(p0)"
<< std::endl;
return EXIT_FAILURE;
}
if( p1.EuclideanDistanceTo( p1 ) != 0. )
{
std::cerr << "p1.EuclideanDistanceTo(p1) != 0."
<< std::endl;
return EXIT_FAILURE;
}
PointType::RealType dist2 = p0.SquaredEuclideanDistanceTo(p1);
std::cout << "Dist2: " << dist2 << std::endl;
{
std::cerr << "dist2 != dist * dist" << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}