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

Member Typedef Documentation

◆ T

template<typename V >
using MR::Ball< V >::T = typename VTraits::BaseType

◆ VTraits

template<typename V >
using MR::Ball< V >::VTraits = VectorTraits<V>

Member Function Documentation

◆ inside()

template<typename V >
bool MR::Ball< V >::inside ( const V & pt) const
inline

returns true if given point is strictly inside the ball (not on its spherical surface)

◆ outside()

template<typename V >
bool MR::Ball< V >::outside ( const V & pt) const
inline

returns true if given point is strictly outside the ball (not on its spherical surface)

Member Data Documentation

◆ center

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

ball's center

◆ elements

template<typename V >
int MR::Ball< V >::elements = VTraits::size
staticconstexpr

◆ radiusSq

template<typename V >
T MR::Ball< V >::radiusSq = 0

ball's squared radius


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