n-dimensional sphere.
More...
#include <hypersphere.hpp>
template<class T, std::size_t N>
struct geom::primitives::hypersphere< T, N >
n-dimensional sphere.
- Template Parameters
-
T | Real type. |
N | Number of dimensions. |
Definition at line 36 of file hypersphere.hpp.
◆ vector_type
template<class T , std::size_t N>
◆ contains() [1/2]
template<class T , std::size_t N>
Tests whether another hypersphere is contained within this hypersphere.
- Parameters
-
other | Hypersphere to test for containment. |
- Returns
true
if the hypersphere is contained within this hypersphere, false
otherwise.
Definition at line 66 of file hypersphere.hpp.
◆ contains() [2/2]
template<class T , std::size_t N>
Tests whether a point is contained within this hypersphere.
- Parameters
-
point | Point to test for containment. |
- Returns
true
if the point is contained within this hypersphere, false
otherwise.
Definition at line 54 of file hypersphere.hpp.
◆ distance()
template<class T , std::size_t N>
Calculates the signed distance from the hypersphere to a point.
- Parameters
-
- Returns
- Signed distance from the hypersphere to
point
.
Definition at line 84 of file hypersphere.hpp.
◆ intersects()
template<class T , std::size_t N>
Tests whether another hypersphere intersects this hypersphere.
- Parameters
-
other | Hypersphere to test for intersection. |
- Returns
true
if the hypersphere intersects this hypersphere, false
otherwise.
Definition at line 97 of file hypersphere.hpp.
◆ volume() [1/3]
template<class T , std::size_t N>
◆ volume() [2/3]
template<class T , std::size_t N>
template<>
|
inlinestaticconstexprnoexcept |
Volume calculation helper function.
- Template Parameters
-
- Parameters
-
- Returns
- Volume.
Definition at line 121 of file hypersphere.hpp.
◆ volume() [3/3]
template<class T , std::size_t N>
template<>
|
inlinestaticconstexprnoexcept |
Volume calculation helper function.
- Template Parameters
-
- Parameters
-
- Returns
- Volume.
Definition at line 127 of file hypersphere.hpp.
◆ center
template<class T , std::size_t N>
◆ radius
template<class T , std::size_t N>
The documentation for this struct was generated from the following file: