Krig Game Engine
Loading...
Searching...
No Matches
Plane.h
Go to the documentation of this file.
1
7#ifndef _PLANE_H_
8#define _PLANE_H_
9
10#include "Matrix.h"
11#include "Vector.h"
12
13class Plane {
14 public:
15 Plane();
16 ~Plane();
17
18 void setPlane(const float&, const float&, const float&, const float&);
19 void normalize();
20 float distanceToPoint(const float&, const float&, const float&);
21 int classifyPoint(const float&, const float&, const float&);
22 void getNormalVector(Vector &) const;
23 void getDefinition(float&, float&, float&, float&) const;
24
25 private:
26 float a_, b_, c_, d_;
27};
28
29#endif
Representation of 4x4 matrix with common matrix operations.
Represent and operate on vectors.
Definition Vector.h:15