goat3dgfx

diff src/geom.h @ 23:0ac499409edd

added misisng header file in goat3dgfx.h added contains() function in geom
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Feb 2014 23:47:48 +0200
parents 7d6b667821cf
children
line diff
     1.1 --- a/src/geom.h	Sat Dec 28 06:48:23 2013 +0200
     1.2 +++ b/src/geom.h	Tue Feb 25 23:47:48 2014 +0200
     1.3 @@ -21,6 +21,7 @@
     1.4  	virtual void set_union(const GeomObject *obj1, const GeomObject *obj2) = 0;
     1.5  	virtual void set_intersection(const GeomObject *obj1, const GeomObject *obj2) = 0;
     1.6  
     1.7 +	virtual bool contains(const Vector3 &pt) const = 0;
     1.8  	virtual bool intersect(const Ray &ray, HitPoint *hit = 0) const = 0;
     1.9  };
    1.10  
    1.11 @@ -35,6 +36,7 @@
    1.12  	void set_union(const GeomObject *obj1, const GeomObject *obj2);
    1.13  	void set_intersection(const GeomObject *obj1, const GeomObject *obj2);
    1.14  
    1.15 +	bool contains(const Vector3 &pt) const;
    1.16  	bool intersect(const Ray &ray, HitPoint *hit = 0) const;
    1.17  };
    1.18  
    1.19 @@ -48,6 +50,7 @@
    1.20  	void set_union(const GeomObject *obj1, const GeomObject *obj2);
    1.21  	void set_intersection(const GeomObject *obj1, const GeomObject *obj2);
    1.22  
    1.23 +	bool contains(const Vector3 &pt) const;
    1.24  	bool intersect(const Ray &ray, HitPoint *hit = 0) const;
    1.25  };
    1.26  
    1.27 @@ -63,6 +66,7 @@
    1.28  	void set_union(const GeomObject *obj1, const GeomObject *obj2);
    1.29  	void set_intersection(const GeomObject *obj1, const GeomObject *obj2);
    1.30  
    1.31 +	bool contains(const Vector3 &pt) const;
    1.32  	bool intersect(const Ray &ray, HitPoint *hit = 0) const;
    1.33  };
    1.34