cgv
|
A sphere data structure. More...
#include <sphere.h>
Public Member Functions | |
sphere () | |
create a unit sphere | |
sphere (const cgv::math::vec< T > &c, const T &radius) | |
construct from center and radius | |
Public Attributes | |
cgv::math::vec< T > | h |
A sphere data structure.
The sphere is defined by a homogeneous vector which keeps the center point in the first components and the radius in the last component.
|
inline |
|
inline |
construct from center and radius
Definition at line 23 of file sphere.h.
References cgv::math::vec< T >::resize(), and cgv::math::vec< T >::size().
cgv::math::vec<T> cgv::media::sphere< T, N >::h |