Rumba C++ SDK
Imath::Sphere3< T > Class Template Reference

#include <ImathSphere.h>

Public Member Functions

 Sphere3 ()
 
 Sphere3 (const Vec3< T > &c, T r)
 
void circumscribe (const Box< Vec3< T > > &box)
 
bool intersect (const Line3< T > &l, Vec3< T > &intersection) const
 
bool intersectT (const Line3< T > &l, T &t) const
 

Public Attributes

Vec3< T > center
 
radius
 

Constructor & Destructor Documentation

◆ Sphere3() [1/2]

template<class T >
Imath::Sphere3< T >::Sphere3 ( )
inline

◆ Sphere3() [2/2]

template<class T >
Imath::Sphere3< T >::Sphere3 ( const Vec3< T > &  c,
r 
)
inline

Member Function Documentation

◆ circumscribe()

template<class T >
void Imath::Sphere3< T >::circumscribe ( const Box< Vec3< T > > &  box)

◆ intersect()

template<class T >
bool Imath::Sphere3< T >::intersect ( const Line3< T > &  l,
Vec3< T > &  intersection 
) const

◆ intersectT()

template<class T >
bool Imath::Sphere3< T >::intersectT ( const Line3< T > &  l,
T &  t 
) const

Member Data Documentation

◆ center

template<class T >
Vec3<T> Imath::Sphere3< T >::center

◆ radius

template<class T >
T Imath::Sphere3< T >::radius

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