Pathfinder
Plane.h
Go to the documentation of this file.
1 
10 #ifndef PLANE_H
11 #define PLANE_H
12 
13 #include <Geometry/Vec3.h>
14 
15 namespace Pathfinder {
16 
20  struct Plane {
21 
25  float a;
26 
27 
31  float b;
32 
33 
37  float c;
38 
39 
43  float d;
44 
45 
54  Plane(
55  const float& a,
56  const float& b,
57  const float& c,
58  const float& d
59  );
60 
61 
69  Plane(
70  const Geometry::Vec3& u,
71  const Geometry::Vec3& v,
72  const Geometry::Vec3& w
73  );
74 
75  };
76 
77 }
78 
79 #endif
This struct models a plane of the form ax + by + cz + d = 0.
Definition: Plane.h:20
Definition: AABB.cpp:21
Plane(const float &a, const float &b, const float &c, const float &d)
A basic constructor that creates a plane from four parameters.
Definition: Plane.cpp:14
float a
Parameter a of the plane.
Definition: Plane.h:25
float d
Parameter d of the plane.
Definition: Plane.h:43
float b
Parameter b of the plane.
Definition: Plane.h:31
float c
Parameter c of the plane.
Definition: Plane.h:37