Hermes
Loading...
Searching...
No Matches
hermes::Sphere Class Reference
+ Inheritance diagram for hermes::Sphere:

Public Member Functions

 Sphere (point3 center, real_t radius)
 
point3 closestPoint (const point3 &p) const override
 
normal3 closestNormal (const point3 &p) const override
 
bbox3 boundingBox () const override
 
void closestIntersection (const Ray3 &r, SurfaceRayIntersection *i) const override
 
- Public Member Functions inherited from hermes::SurfaceInterface
virtual bool intersects (const Ray3 &r) const
 
virtual double closestDistance (const point3 &p) const
 

Public Attributes

point3 c
 
real_t r
 

Member Function Documentation

◆ boundingBox()

bbox3 hermes::Sphere::boundingBox ( ) const
inlineoverridevirtual

◆ closestIntersection()

void hermes::Sphere::closestIntersection ( const Ray3 r,
SurfaceRayIntersection i 
) const
inlineoverridevirtual

◆ closestNormal()

normal3 hermes::Sphere::closestNormal ( const point3 p) const
inlineoverridevirtual

◆ closestPoint()

point3 hermes::Sphere::closestPoint ( const point3 p) const
inlineoverridevirtual

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