#include <surfaces/Sphere.h>
Inheritance diagram for Sphere:

Public Member Functions | |
| Sphere (const Vector3 &c, double r, const Vector3 &u, const Vector3 &v, const Vector3 &w, SurfaceShader *sshader, LightShader *lshader) | |
| bool | hit (Ray &r, HitRecord &rec, Context &context) const |
| bool | shadowHit (Ray &r, Context &context) const |
| BBox | boundingBox (double time0, double time1) const |
| bool | overlapsBox (const BBox &box) const |
| bool | randomPoint (Vector3 &on_light, Context &context) const |
| bool | randomDirection (const HitRecord &rec, Context &context, Vector3 &w_in, double &pdf) const |
| double | pdfDirection (const Vector3 &w_in, const HitRecord &rec, Context &context) const |
|
||||||||||||||||
|
Intersect given ray with the surface.
Implements Surface. |
|
||||||||||||
|
Intersect without visibility ordering or shading geometry.
Reimplemented from Surface. |
|
||||||||||||
|
Calculate the bounding box of the surface.
Implements Surface. |
|
|
Determine if this surface overlaps the input axis aligned box.
Implements Surface. |
|
||||||||||||
|
Randomly sample a point on the surface.
Reimplemented from Surface. |
|
||||||||||||||||||||
|
Choose direction with uniform probability within cone subtended by light as seen from rec.p. This means Reimplemented from Surface. |
|
||||||||||||||||
|
Evalute pdf for the given direction.
Reimplemented from Surface. |
1.4.3