|
Recti 1.2.4
|
Generic free functions for geometric operations (overlap, intersection, hull, distance). More...
#include <cassert>

Go to the source code of this file.
Namespaces | |
| namespace | recti |
Functions | |
| template<typename T > | |
| constexpr auto | recti::my_abs (const T &value) -> T |
| Compute the absolute value of a number. | |
| template<typename U1 , typename U2 > | |
| constexpr auto | recti::overlap (const U1 &lhs, const U2 &rhs) -> bool |
| Checks if two objects overlap. | |
| template<typename U1 , typename U2 > | |
| constexpr auto | recti::contain (const U1 &lhs, const U2 &rhs) -> bool |
| Check if one object contains another object. | |
| template<typename U1 , typename U2 > | |
| constexpr auto | recti::intersection (const U1 &lhs, const U2 &rhs) |
| Computes the intersection of two objects. | |
| template<typename U1 , typename U2 > | |
| constexpr auto | recti::min_dist (const U1 &lhs, const U2 &rhs) |
Calculates the minimum distance between two objects lhs and rhs. | |
| template<typename U1 , typename U2 > | |
| constexpr auto | recti::min_dist_change (U1 &lhs, U2 &rhs) |
Calculates the minimum distance between two objects lhs and rhs, with the ability to handle a change in the objects. | |
| template<typename U1 , typename U2 > | |
| constexpr auto | recti::nearest (const U1 &lhs, const U2 &rhs) |
Returns the nearest point on lhs to rhs. | |
| template<typename U > | |
| constexpr auto | recti::measure_of (const U &obj) |
| Calculates the measure (length, area, etc.) of an object. | |
| template<typename U > | |
| constexpr auto | recti::center (const U &obj) |
| Calculates the center of an object. | |
| template<typename U > | |
| constexpr auto | recti::lower (const U &obj) |
| Calculates the lower corner of an object. | |
| template<typename U > | |
| constexpr auto | recti::upper (const U &obj) |
| Calculates the upper corner of an object. | |
Generic free functions for geometric operations (overlap, intersection, hull, distance).