gpuray_glsl

view src/cone.cc @ 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 #include "cone.h"
3 Cone::Cone()
4 {
5 angle = M_PI / 4.0;
6 ymin = 0.0f;
7 ymax = 1.0f;
8 }
10 Cone::Cone(float angle, float ymin, float ymax)
11 {
12 this->angle = angle;
13 this->ymin = ymin;
14 this->ymax = ymax;
15 }
17 bool Cone::intersect(const Ray &ray, HitPoint *pt) const
18 {
19 return false; // TODO
20 }