#include <cylinder.h>
Public Member Functions | |
Cylinder (const Transform *o2w, const Transform *w2o, bool ro, float rad, float zmin, float zmax, float phiMax) | |
BBox | ObjectBound () const |
bool | Intersect (const Ray &ray, float *tHit, float *rayEpsilon, DifferentialGeometry *dg) const |
bool | IntersectP (const Ray &ray) const |
float | Area () const |
Point | Sample (float u1, float u2, Normal *Ns) const |
Protected Attributes | |
float | radius |
float | zmin |
float | zmax |
float | phiMax |
Definition at line 35 of file cylinder.h.
float Cylinder::Area | ( | ) | const [virtual] |
bool Cylinder::Intersect | ( | const Ray & | ray, | |
float * | tHit, | |||
float * | rayEpsilon, | |||
DifferentialGeometry * | dg | |||
) | const [virtual] |
bool Cylinder::IntersectP | ( | const Ray & | ray | ) | const [virtual] |
BBox Cylinder::ObjectBound | ( | ) | const [virtual] |
Reimplemented from Shape.
Definition at line 197 of file cylinder.cpp.
References Lerp(), Normalize(), Shape::ObjectToWorld, phiMax, radius, Shape::ReverseOrientation, Point::x, Point::y, zmax, and zmin.
float Cylinder::phiMax [protected] |
Definition at line 48 of file cylinder.h.
Referenced by Area(), Cylinder(), Intersect(), IntersectP(), and Sample().
float Cylinder::radius [protected] |
Definition at line 48 of file cylinder.h.
Referenced by Area(), Cylinder(), Intersect(), IntersectP(), ObjectBound(), and Sample().
float Cylinder::zmax [protected] |
Definition at line 48 of file cylinder.h.
Referenced by Area(), Cylinder(), Intersect(), IntersectP(), ObjectBound(), and Sample().
float Cylinder::zmin [protected] |
Definition at line 48 of file cylinder.h.
Referenced by Area(), Cylinder(), Intersect(), IntersectP(), ObjectBound(), and Sample().