Public Member Functions | |
Cone (const Transform &o2w, bool ro, float height, float rad, float tm) | |
BBox | ObjectBound () const |
bool | Intersect (const Ray &ray, float *tHit, DifferentialGeometry *dg) const |
bool | IntersectP (const Ray &ray) const |
float | Area () const |
Protected Attributes | |
float | radius |
float | height |
float | phiMax |
Definition at line 27 of file cone.cpp.
Cone::Cone | ( | const Transform & | o2w, | |
bool | ro, | |||
float | height, | |||
float | rad, | |||
float | tm | |||
) |
BBox Cone::ObjectBound | ( | ) | const [virtual] |
bool Cone::Intersect | ( | const Ray & | ray, | |
float * | tHit, | |||
DifferentialGeometry * | dg | |||
) | const [virtual] |
Reimplemented from Shape.
Definition at line 54 of file cone.cpp.
References Cross(), Ray::d, Dot(), height, M_PI, Ray::maxt, Ray::mint, N, Normalize(), Ray::o, Shape::ObjectToWorld, phiMax, Quadratic(), radius, Shape::WorldToObject, Point::x, Vector::x, Point::y, Vector::y, Point::z, and Vector::z.
bool Cone::IntersectP | ( | const Ray & | ray | ) | const [virtual] |
float Cone::Area | ( | ) | const [virtual] |
float Cone::radius [protected] |
Definition at line 39 of file cone.cpp.
Referenced by Area(), Cone(), CreateShape(), Intersect(), IntersectP(), and ObjectBound().
float Cone::height [protected] |
Definition at line 39 of file cone.cpp.
Referenced by Area(), Cone(), CreateShape(), Intersect(), IntersectP(), and ObjectBound().
float Cone::phiMax [protected] |
Definition at line 39 of file cone.cpp.
Referenced by Area(), Cone(), Intersect(), and IntersectP().