cloth
diff src/plane.h @ 3:28a31079dcdf
disc
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 04 Jan 2016 10:52:15 +0200 |
parents | 92983e143a03 |
children |
line diff
1.1 --- a/src/plane.h Tue Feb 12 00:23:40 2013 +0200 1.2 +++ b/src/plane.h Mon Jan 04 10:52:15 2016 +0200 1.3 @@ -2,10 +2,14 @@ 1.4 #define PLANE_H_ 1.5 1.6 #include <vmath/vmath.h> 1.7 +#include "object.h" 1.8 1.9 struct Collision; 1.10 1.11 -class Plane { 1.12 +class Plane : public Object { 1.13 +protected: 1.14 + Matrix4x4 calc_rot_matrix() const; 1.15 + 1.16 public: 1.17 Vector3 pt; 1.18 Vector3 normal; 1.19 @@ -16,7 +20,7 @@ 1.20 1.21 bool collision(const Ray &ray, float rad, Collision *col) const; 1.22 1.23 - void draw(float sz) const; 1.24 + void draw() const; 1.25 }; 1.26 1.27 #endif // PLANE_H_