MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Ball< V > Struct Template Reference

a ball = points surrounded by a sphere in arbitrary space with vector type V More...

#include <MRBall.h>

Public Types

using VTraits = VectorTraits<V>
 
using T = typename VTraits::BaseType
 

Public Member Functions

bool inside (const V &pt) const
 returns true if given point is strictly inside the ball (not on its spherical surface)
 
bool outside (const V &pt) const
 returns true if given point is strictly outside the ball (not on its spherical surface)
 

Public Attributes

center
 ball's center
 
T radiusSq = 0
 ball's squared radius
 

Static Public Attributes

static constexpr int elements = VTraits::size
 

Detailed Description

template<typename V>
struct MR::Ball< V >

a ball = points surrounded by a sphere in arbitrary space with vector type V


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