cloth

view 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 source
1 #ifndef PLANE_H_
2 #define PLANE_H_
4 #include <vmath/vmath.h>
6 struct Collision;
8 class Plane {
9 public:
10 Vector3 pt;
11 Vector3 normal;
13 Plane();
14 Plane(const Vector3 &pt, const Vector3 &norm);
15 Plane(const Vector3 &norm, float dist);
17 bool collision(const Ray &ray, float rad, Collision *col) const;
19 void draw(float sz) const;
20 };
22 #endif // PLANE_H_