iaux::iaSphere< T > Class Template Reference

#include <iaSphere.h>

Public Member Functions

 iaSphere ()=default
 
 iaSphere (iaVector3< T > center, T radius)
 
virtual ~iaSphere ()=default
 
void merge (iaSphere< T > &sphere)
 
bool operator== (const iaSphere< T > &sphere) const
 
bool operator!= (const iaSphere< T > &sphere) const
 

Public Attributes

iaVector3< T > _center
 
_radius = static_cast<T>(1.0)
 

Detailed Description

template<class T>
class iaux::iaSphere< T >

sphere

Constructor & Destructor Documentation

◆ iaSphere() [1/2]

template<class T >
iaux::iaSphere< T >::iaSphere ( )
default

does nothing

◆ iaSphere() [2/2]

template<class T >
iaux::iaSphere< T >::iaSphere ( iaVector3< T >  center,
radius 
)

constructor that initializes member variables

Parameters
centercenter position of sphere
radiusradius of sphere

◆ ~iaSphere()

template<class T >
virtual iaux::iaSphere< T >::~iaSphere ( )
virtualdefault

does nothing

Member Function Documentation

◆ merge()

template<class T >
void iaSphere::merge ( iaSphere< T > &  sphere)

merges one sphere in to an other

Parameters
spherethe sphere to merge with

◆ operator!=()

template<class T >
bool iaSphere::operator!= ( const iaSphere< T > &  sphere) const
Returns
true if spheres are not equal
Parameters
spherethe sphere to compare with

◆ operator==()

template<class T >
bool iaSphere::operator== ( const iaSphere< T > &  sphere) const
Returns
true if two spheres are equal
Parameters
spherethe sphere to compare with

Member Data Documentation

◆ _center

template<class T >
iaVector3<T> iaux::iaSphere< T >::_center

center position of sphere

◆ _radius

template<class T >
T iaux::iaSphere< T >::_radius = static_cast<T>(1.0)

radius of sphere


The documentation for this class was generated from the following files: