AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Consists of a set of templated (overloaded) routines used to calculate the "signed" squared distance between two geometric entities. More...
#include "axom/primal/geometry/BoundingBox.hpp"
#include "axom/primal/geometry/Point.hpp"
#include "axom/primal/geometry/Segment.hpp"
#include "axom/primal/geometry/Triangle.hpp"
#include "axom/primal/geometry/Vector.hpp"
#include "axom/primal/operators/closest_point.hpp"
#include "axom/slic/interface/slic.hpp"
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> | |
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> | |
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> | |
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... | |
Consists of a set of templated (overloaded) routines used to calculate the "signed" squared distance between two geometric entities.