12 using T =
typename V::ValueType;
17 constexpr Sphere() noexcept = default;
Definition MRCameraOrientationPlugin.h:8
constexpr T sqr(T x) noexcept
squared value
Definition MRMeshFwd.h:752
constexpr Sphere() noexcept=default
friend bool operator==(const Sphere &a, const Sphere &b)=default
T distance(const V &x) const
Definition MRSphere.h:30
V project(const V &x) const
finds the closest point on sphere
Definition MRSphere.h:26
typename V::ValueType T
Definition MRSphere.h:12
MR_REQUIRES_IF_SUPPORTED(!std::is_same_v< V, U >) const expr explicit Sphere(const Sphere< U > &l) noexcept
Definition MRSphere.h:22
T distanceSq(const V &x) const
returns squared distance from given point to this sphere
Definition MRSphere.h:33
V center
Definition MRSphere.h:14
T radius
Definition MRSphere.h:15