Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
cinder::Sphere Class Reference

#include <Sphere.h>

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

Vec3f cinder::Sphere::mCenter
protected
float cinder::Sphere::mRadius
protected

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