Sphere Shape.
More...
#include <models3.h>
◆ Sphere()
RayMarching::Sphere::Sphere |
( |
Eigen::Vector3d |
p, |
|
|
double |
r = 0 , |
|
|
color_t |
color = BLACK |
|
) |
| |
|
inlineexplicit |
Default constructor
- Parameters
-
p | Position in space |
r | radius |
color | Sphere color |
◆ ~Sphere()
RayMarching::Sphere::~Sphere |
( |
| ) |
|
|
overridedefault |
◆ getDist()
double RayMarching::Sphere::getDist |
( |
const Eigen::Vector3d & |
p | ) |
const |
|
overridevirtual |
◆ getRadius()
double RayMarching::Sphere::getRadius |
( |
| ) |
const |
|
inline |
Radius getter
- Returns
- Sphere radius
The documentation for this class was generated from the following files: