25 lines
464 B
C++
25 lines
464 B
C++
|
|
#ifndef CYL_H
|
|
#define CYL_H CYL_H
|
|
|
|
#include "Shape.h"
|
|
|
|
class Cyl : public Shape
|
|
{
|
|
public:
|
|
Cyl(double bottom_radius, double top_radius, double height);
|
|
IntersectList intersect(const Ray & ray);
|
|
Vector getNormalAt(const Vector & pt);
|
|
|
|
protected:
|
|
double m_bottom_radius;
|
|
double m_bottom_radius_2;
|
|
double m_top_radius;
|
|
double m_top_radius_2;
|
|
double m_height;
|
|
double m_slope;
|
|
};
|
|
|
|
#endif
|
|
|