15 using T =
typename V::ValueType;
20 constexpr Sphere() noexcept = default;
#define MR_REQUIRES_IF_SUPPORTED(...)
Definition MRMacros.h:33
constexpr Sphere() noexcept=default
friend bool operator==(const Sphere &a, const Sphere &b)=default
constexpr auto sqr(T x) noexcept -> decltype(x *x)
squared value; the result type is the type of x*x, which is int for small integer types (char,...
Definition MRMeshFwd.h:799
T distance(const V &x) const
Definition MRSphere.h:33
V project(const V &x) const
finds the closest point on sphere
Definition MRSphere.h:29
typename Vector3< T >::ValueType T
Definition MRSphere.h:15
T distanceSq(const V &x) const
returns squared distance from given point to this sphere
Definition MRSphere.h:36
Vector3< T > center
Definition MRSphere.h:17
T radius
Definition MRSphere.h:18
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8