MeshLib C++ Docs
Loading...
Searching...
No Matches

#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>
 MR_REQUIRES_IF_SUPPORTED (!std::is_same_v< V, U >) const expr explicit Sphere(const Sphere< U > &l) noexcept
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

center
T radius = 0

Friends

bool operator== (const Sphere &a, const Sphere &b)=default

The documentation for this struct was generated from the following file: