cloth

diff src/plane.h @ 0:92983e143a03

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 11 Feb 2013 19:40:36 +0200
parents
children 28a31079dcdf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/plane.h	Mon Feb 11 19:40:36 2013 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +#ifndef PLANE_H_
     1.5 +#define PLANE_H_
     1.6 +
     1.7 +#include <vmath/vmath.h>
     1.8 +
     1.9 +struct Collision;
    1.10 +
    1.11 +class Plane {
    1.12 +public:
    1.13 +	Vector3 pt;
    1.14 +	Vector3 normal;
    1.15 +
    1.16 +	Plane();
    1.17 +	Plane(const Vector3 &pt, const Vector3 &norm);
    1.18 +	Plane(const Vector3 &norm, float dist);
    1.19 +
    1.20 +	bool collision(const Ray &ray, float rad, Collision *col) const;
    1.21 +
    1.22 +	void draw(float sz) const;
    1.23 +};
    1.24 +
    1.25 +#endif	// PLANE_H_