#include <Sphere.h>
Public Member Functions | |
| Sphere () | |
| Sphere (const Vec3f &aCenter, float aRadius) | |
| float | getRadius () const |
| void | setRadius (float radius) |
| const Vec3f & | getCenter () const |
| const void | setCenter (const Vec3f ¢er) |
| 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 |
| cinder::Sphere::Sphere | ( | const Vec3f & | aCenter, |
| float | aRadius | ||
| ) |
| 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] |
Vec3f cinder::Sphere::mCenter [protected] |
float cinder::Sphere::mRadius [protected] |