Visual Computing Library
|
Public Types | |
using | ScalarType = Scalar |
using | PointType = Point3< Scalar > |
using | BoxType = Box3< Scalar > |
Public Member Functions | |
Sphere (const Point3< Scalar > ¢er, Scalar radius) | |
const Point3< Scalar > & | center () const |
Point3< Scalar > & | center () |
const Scalar & | radius () const |
Scalar & | radius () |
template<typename S > | |
auto | cast () const |
Scalar | diameter () const |
Scalar | circumference () const |
Scalar | surfaceArea () const |
Scalar | volume () const |
bool | isInside (const Point3< Scalar > &p) const |
bool | intersects (const Box3< Scalar > &b) const |
Checks if a sphere intersects with a Box. | |
Private Attributes | |
Point3< Scalar > | mCenter |
Scalar | mRadius |
|
inline |