#include <MRSphere.h>
|
| using | T = typename V::ValueType |
| |
|
| constexpr | Sphere () noexcept=default |
| |
| constexpr | Sphere (const V &c, T r) noexcept |
| |
| template<typename U > |
| | MR_REQUIRES_IF_SUPPORTED (!std::is_same_v< V, U >) const expr explicit Sphere(const Sphere< U > &l) noexcept |
| |
| V | project (const V &x) const |
| | finds the closest point on sphere
|
| |
| T | distance (const V &x) const |
| |
| T | distanceSq (const V &x) const |
| | returns squared distance from given point to this sphere
|
| |
◆ Sphere() [1/2]
◆ Sphere() [2/2]
◆ distance()
returns signed distance from given point to this sphere: positive - outside, zero - on sphere, negative - inside
◆ distanceSq()
returns squared distance from given point to this sphere
◆ MR_REQUIRES_IF_SUPPORTED()
template<typename V >
template<typename U >
| MR::Sphere< V >::MR_REQUIRES_IF_SUPPORTED |
( |
!std::is_same_v< V, U > | | ) |
const & |
|
inlinenoexcept |
◆ project()
finds the closest point on sphere
◆ operator==
template<typename V >
| bool operator== |
( |
const Sphere< V > & | a, |
|
|
const Sphere< V > & | b ) |
|
friend |
◆ center
◆ radius
The documentation for this struct was generated from the following file: