AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
squared_distance.hpp File Reference

Consists of a set of templated (overloaded) routines used to calculate the squared distance between two geometric entities. More...

Namespaces

 axom
 
 axom::primal
 

Functions

double axom::primal::squared_distance (const double *A, const double *B, int N)
 Computes the squared distance from point A to point B, represented by arrays of length N. More...
 
template<typename T , int NDIMS>
AXOM_HOST_DEVICE double axom::primal::squared_distance (const Point< T, NDIMS > &A, const Point< T, NDIMS > &B)
 Computes the squared distance from point A to point B. More...
 
template<typename T , int NDIMS>
AXOM_HOST_DEVICE double axom::primal::squared_distance (const Point< T, NDIMS > &P, const BoundingBox< T, NDIMS > &B)
 Computes the minimum squared distance from a query point, P, to a given axis-aligned bounding box B. More...
 
template<typename T , int NDIMS>
AXOM_HOST_DEVICE double axom::primal::squared_distance (const BoundingBox< T, NDIMS > &A, const BoundingBox< T, NDIMS > &B)
 Computes the minimum squared distance between 2 axis-aligned boxes. More...
 
template<typename T , int NDIMS>
double axom::primal::squared_distance (const Point< T, NDIMS > &P, const Segment< T, NDIMS > &S)
 Computes the minimum squared distance from a query point, P, to the given segment, S. More...
 
template<typename T , int NDIMS>
double axom::primal::squared_distance (const Point< T, NDIMS > &P, const Triangle< T, NDIMS > &tri)
 Computes the minimum squared distance from a query point, P, to the closest point on the given triangle. More...
 

Detailed Description

Consists of a set of templated (overloaded) routines used to calculate the squared distance between two geometric entities.