RayMarching  0.0.1
Simple 3D engine based on a ray marching rendering
Public Member Functions | List of all members
RayMarching::Cylinder Class Reference

Cylinder Shape. More...

#include <models3.h>

Inheritance diagram for RayMarching::Cylinder:
RayMarching::Shape RayMarching::SDFObject

Public Member Functions

 Cylinder (Eigen::Vector3d p, double h, double r, color_t color=BLACK)
 
 ~Cylinder () override=default
 
double getDist (const Eigen::Vector3d &p) const override
 
- Public Member Functions inherited from RayMarching::Shape
 Shape (color_t color=BLACK)
 
 Shape (Eigen::Vector3d p, color_t color=BLACK)
 
virtual Eigen::Vector3d getPos () const
 
color_t getColor (const Eigen::Vector3d &p) const override
 
void setColor (color_t color)
 
- Public Member Functions inherited from RayMarching::SDFObject
virtual ~SDFObject ()=default
 
Line getReflection (const Line &ray) const
 

Additional Inherited Members

- Protected Attributes inherited from RayMarching::Shape
Eigen::Vector3d _pos
 
color_t _color
 

Detailed Description

Cylinder Shape.

Constructor & Destructor Documentation

◆ Cylinder()

RayMarching::Cylinder::Cylinder ( Eigen::Vector3d  p,
double  h,
double  r,
color_t  color = BLACK 
)
inline

Creates new Cylinder

Parameters
pcenter of the Cylinder
hheight of the Cylinder
rradius of the Cylinder

◆ ~Cylinder()

RayMarching::Cylinder::~Cylinder ( )
overridedefault

Default destructor

Member Function Documentation

◆ getDist()

double RayMarching::Cylinder::getDist ( const Eigen::Vector3d &  p) const
overridevirtual

SDF function

Parameters
pRequesting point
Returns
distance to the SDFObject

Implements RayMarching::SDFObject.


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