cloth

view 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 source
1 #ifndef PLANE_H_
2 #define PLANE_H_
4 #include <vmath/vmath.h>
5 #include "object.h"
7 struct Collision;
9 class Plane : public Object {
10 protected:
11 Matrix4x4 calc_rot_matrix() const;
13 public:
14 Vector3 pt;
15 Vector3 normal;
17 Plane();
18 Plane(const Vector3 &pt, const Vector3 &norm);
19 Plane(const Vector3 &norm, float dist);
21 bool collision(const Ray &ray, float rad, Collision *col) const;
23 void draw() const;
24 };
26 #endif // PLANE_H_