#include <MRMesh/MRSphere.h>
Public Types | |
| using | T = typename V::ValueType |
Public Member Functions | |
| 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 | |
Public Attributes | |
| V | center |
| T | radius = 0 |
Friends | |
| bool | operator== (const Sphere &a, const Sphere &b)=default |