Contains functions for calculating statistics and distances between various geometric entities.
More...
|
template<class InputIterator > |
Statistics | compute_statistics (InputIterator first, InputIterator last) |
| Computes various statistics for the range [first, last) More...
|
|
template<unsigned DIM, class InputIterator > |
std::iterator_traits< InputIterator >::value_type | dot (InputIterator v1, InputIterator v2) |
| Computes the dot product of two vectors. More...
|
|
template<unsigned DIM, class InputIterator > |
bool | equal (InputIterator p1, InputIterator p2) |
| Determines if two points have the exact same coordinates. More...
|
|
template<unsigned DIM, class InputIterator , class OutputIterator > |
OutputIterator | interpolate (InputIterator p1, InputIterator p2, float fraction, OutputIterator result) |
| Peforms linear interpolation between two points. More...
|
|
template<unsigned DIM, class InputIterator > |
std::iterator_traits< InputIterator >::value_type | line_distance2 (InputIterator l1, InputIterator l2, InputIterator p) |
| Computes the squared distance between an infinite line (l1, l2) and a point p. More...
|
|
template<unsigned DIM, class InputIterator , class OutputIterator > |
OutputIterator | make_vector (InputIterator p1, InputIterator p2, OutputIterator result) |
| Creates a vector from two points. More...
|
|
template<unsigned DIM, class InputIterator1 , class InputIterator2 > |
std::iterator_traits< InputIterator1 >::value_type | point_distance2 (InputIterator1 p1, InputIterator2 p2) |
| Computes the squared distance of two points. More...
|
|
template<unsigned DIM, class InputIterator > |
std::iterator_traits< InputIterator >::value_type | ray_distance2 (InputIterator r1, InputIterator r2, InputIterator p) |
| Computes the squared distance between a ray (r1, r2) and a point p. More...
|
|
template<unsigned DIM, class InputIterator > |
std::iterator_traits< InputIterator >::value_type | segment_distance2 (InputIterator s1, InputIterator s2, InputIterator p) |
| Computes the squared distance between a line segment (s1, s2) and a point p. More...
|
|
Contains functions for calculating statistics and distances between various geometric entities.