MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Namespaces | Functions
geometry.h File Reference
#include "math/defines.h"
#include "math/vector.h"
#include "math/matrix.h"
#include "math/matrix_tools.h"
Include dependency graph for geometry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  math
 Vector, Matrix, basic operations, etc.
 
namespace  math::geom
 Computation of geometric quantities and predicates.
 

Functions

template<typename T >
math::Vector< T, 3 > math::geom::circumsphere_center (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d)
 Returns the center of the circumsphere defined by the four given vertices.
 
template<typename T >
float math::geom::circumsphere_radius (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d)
 Returns the circumsphere radius of the sphere defined by a, b, c, d.
 
template<typename T >
float math::geom::circumsphere_test (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d, math::Vector< T, 3 > const &p)
 Tests whether vertex 'p' is contained in the circumsphere defined by the four vertices a,b,c,d.
 
template<typename T >
float math::geom::insphere_radius (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d)
 Returns the insphere radius of the tetrahedron defined by a, b, c, d.
 
template<typename T >
bool math::geom::points_coplanar (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d, T const &cos_angle)
 Tests whether four points are coplanar.
 
template<typename T >
math::Vector< T, 3 > math::geom::tetrahedron_bary (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d, math::Vector< T, 3 > const &p)
 Calculates the barycentric coordinates of point 'p' with respect to the tetrahedron given by vertices a,b,c,d.
 
template<typename T >
math::geom::tetrahedron_orientation (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d)
 Calculates the orientation of the given tetrahedron.
 
template<typename T >
math::geom::tetrahedron_volume (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c, math::Vector< T, 3 > const &d)
 Calculates the volume of the given tetraheron.
 
template<typename T >
math::geom::triangle_area (math::Vector< T, 3 > const &a, math::Vector< T, 3 > const &b, math::Vector< T, 3 > const &c)
 Calculates the area of the given triangle.