Public Member Functions | |
Paraboloid (const Transform &o2w, bool ro, float rad, float z0, float z1, 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 | zmin |
float | zmax |
float | phiMax |
Definition at line 27 of file paraboloid.cpp.
Paraboloid::Paraboloid | ( | const Transform & | o2w, | |
bool | ro, | |||
float | rad, | |||
float | z0, | |||
float | z1, | |||
float | tm | |||
) |
Definition at line 44 of file paraboloid.cpp.
References Clamp(), phiMax, Radians(), radius, zmax, and zmin.
Referenced by CreateShape().
BBox Paraboloid::ObjectBound | ( | ) | const [virtual] |
bool Paraboloid::Intersect | ( | const Ray & | ray, | |
float * | tHit, | |||
DifferentialGeometry * | dg | |||
) | const [virtual] |
Reimplemented from Shape.
Definition at line 58 of file paraboloid.cpp.
References Cross(), Ray::d, Dot(), 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, Vector::z, zmax, and zmin.
bool Paraboloid::IntersectP | ( | const Ray & | ray | ) | const [virtual] |
float Paraboloid::Area | ( | ) | const [virtual] |
float Paraboloid::radius [protected] |
Definition at line 39 of file paraboloid.cpp.
Referenced by CreateShape(), Intersect(), IntersectP(), ObjectBound(), and Paraboloid().
float Paraboloid::zmin [protected] |
Definition at line 40 of file paraboloid.cpp.
Referenced by Area(), CreateShape(), Intersect(), IntersectP(), ObjectBound(), and Paraboloid().
float Paraboloid::zmax [protected] |
Definition at line 40 of file paraboloid.cpp.
Referenced by Area(), CreateShape(), Intersect(), IntersectP(), ObjectBound(), and Paraboloid().
float Paraboloid::phiMax [protected] |
Definition at line 41 of file paraboloid.cpp.
Referenced by Area(), Intersect(), IntersectP(), and Paraboloid().