cinder::Sphere Class Reference

#include <Sphere.h>

List of all members.

Public Member Functions

 Sphere ()
 Sphere (const Vec3f &aCenter, float aRadius)
float getRadius () const
void setRadius (float radius)
const Vec3fgetCenter () const
const void setCenter (const Vec3f &center)
bool intersects (const Ray &ray)
int intersect (const Ray &ray, float *intersection)

Static Public Member Functions

static Sphere calculateBoundingSphere (const std::vector< Vec3f > &points)

Protected Attributes

Vec3f mCenter
float mRadius

Constructor & Destructor Documentation

cinder::Sphere::Sphere (  ) 
cinder::Sphere::Sphere ( const Vec3f aCenter,
float  aRadius 
)

Member Function Documentation

float cinder::Sphere::getRadius (  )  const
void cinder::Sphere::setRadius ( float  radius  ) 
const Vec3f& cinder::Sphere::getCenter (  )  const
const void cinder::Sphere::setCenter ( const Vec3f center  ) 
bool cinder::Sphere::intersects ( const Ray ray  ) 
int cinder::Sphere::intersect ( const Ray ray,
float *  intersection 
)
Sphere cinder::Sphere::calculateBoundingSphere ( const std::vector< Vec3f > &  points  )  [static]

Member Data Documentation

float cinder::Sphere::mRadius [protected]

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