The spica renderer
Public Member Functions | List of all members
spica::Sphere Class Reference

Sphere class. More...

#include <sphere.h>

Inheritance diagram for spica::Sphere:
spica::Shape spica::CObject

Public Member Functions

 Sphere (const Point3d &center, double radius, const Transform &objectToWorld=Transform())
 
 Sphere (const Sphere &sphere)
 
Sphereoperator= (const Sphere &sphere)
 
bool intersect (const Ray &ray, double *tHit, SurfaceInteraction *isect) const override
 
bool intersect (const Ray &ray) const override
 
Interaction sample (const Point2d &rands) const override
 
Interaction sample (const Interaction &isect, const Point2d &rands) const override
 
double pdf (const Interaction &pObj, const Vector3d &wi) const override
 
Bounds3d objectBound () const override
 
double area () const override
 
std::vector< Triangletriangulate () const override
 
Point3d center () const
 
double radius () const
 
- Public Member Functions inherited from spica::Shape
 Shape (const Transform &objectToWorld, ShapeType type)
 
 Shape (const Shape &s)
 
Shapeoperator= (const Shape &s)
 
virtual double pdf (const Interaction &pObj) const
 
virtual Bounds3d worldBound () const
 
ShapeType type () const
 

Additional Inherited Members

- Protected Attributes inherited from spica::Shape
Transform objectToWorld_
 
Transform worldToObject_
 
ShapeType type_
 

Detailed Description

Sphere class.


The documentation for this class was generated from the following files: