#include <MRSphere.h>
|
using | T = typename V::ValueType |
|
|
constexpr | Sphere () noexcept=default |
|
constexpr | Sphere (const V &c, T r) noexcept |
|
template<typename U > |
constexpr | 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/3]
◆ Sphere() [2/3]
◆ Sphere() [3/3]
template<typename V >
template<typename U >
|
inlineexplicitconstexprnoexcept |
◆ 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
◆ 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: