gpuray_glsl

view src/cone.h @ 2:6e3a4daf3159

adding cones
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 09 Nov 2014 14:39:01 +0200
parents
children 297dbc5080c4
line source
1 #ifndef CONE_H_
2 #define CONE_H_
4 #include "vmath/vmath.h"
5 #include "object.h"
7 class Cone : public Object {
8 public:
9 float angle;
10 float ymin, ymax; /* in local space */
12 Cone();
13 explicit Cone(float angle, float ymin = 0.0f, float ymax = 1.0f);
15 bool intersect(const Ray &ray, HitPoint *pt) const;
16 };
18 #endif /* CONE_H_ */