Class sphere, with one center point and a radius, together with a rgb color value. More...
#include <object.hpp>
Public Member Functions | |
Sphere () | |
Construct a new Sphere object with no inputs. | |
Sphere (double x, double y, double z, double r, RGB rgb) | |
Construct a new Sphere object, with color inputs. | |
Sphere (double x, double y, double z, double r, std::string text) | |
Construct a new Sphere object, with texture inputs. | |
ObjectInfo | checkObject (Ray &ray) override |
AABB | getBox () override |
Get the Axis-aligned bounding box. More... | |
std::tuple< double, double > | sphereUV (const point3 &point) const |
RGB | getColor (const point3 &point) |
void | setProperties (RGB shine, RGB tran, double ior, double roughness) override |
Set the Material properties. More... | |
virtual ObjectInfo | checkObject (Ray &ray)=0 |
virtual void | setProperties (RGB, RGB, double, double) |
virtual AABB | getBox ()=0 |
Public Attributes | |
point3 | c |
Center point of the sphere. | |
double | r |
Radius of the sphere. | |
Materials | mat |
Material properties. | |
Image | texture |
The texture, as a image. | |
![]() | |
AABB | bbox |
Axis-aligned bounding box for the Object class. For BVH traversal. | |
Class sphere, with one center point and a radius, together with a rgb color value.
|
overridevirtual |
Implements Object.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Set the Material properties.
Reimplemented from Object.