diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/math/Makefile.am | 4 | ||||
-rw-r--r-- | src/math/plane.cc | 28 | ||||
-rw-r--r-- | src/math/plane.h | 33 |
3 files changed, 2 insertions, 63 deletions
diff --git a/src/math/Makefile.am b/src/math/Makefile.am index 4549557..c1f1f88 100644 --- a/src/math/Makefile.am +++ b/src/math/Makefile.am @@ -1,9 +1,9 @@ METASOURCES = AUTO -libmath_la_SOURCES = color.cc functions.cc plane.cc vector3f.cc +libmath_la_SOURCES = color.cc functions.cc vector3f.cc libmath_la_LDFLAGS = -avoid-version -no-undefined -lm noinst_LTLIBRARIES = libmath.la -noinst_HEADERS = color.h functions.h mathlib.h plane.h vector3f.h +noinst_HEADERS = color.h functions.h mathlib.h vector3f.h INCLUDES = -I$(top_srcdir)/src diff --git a/src/math/plane.cc b/src/math/plane.cc deleted file mode 100644 index 21172a4..0000000 --- a/src/math/plane.cc +++ /dev/null @@ -1,28 +0,0 @@ -/* - common/plane.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 -*/ - -// project headers -#include "math/plane.h" - -// C++ headers -#include <cmath> - -namespace math { - -Plane::Plane(Vector3f const &a, Vector3f const &b, Vector3f const &c) -{ - p0 = a; - // FIXME calculate plane normal -} - -Plane::Plane(Vector3f const &p, Vector3f const &n) -{ - p0 = p; - pn = n; -} - -} // namespace math - diff --git a/src/math/plane.h b/src/math/plane.h deleted file mode 100644 index 39207b9..0000000 --- a/src/math/plane.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - common/plane.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 -*/ - -#ifndef __INCLUDED_MATH_PLANE_H__ -#define __INCLUDED_MATH_PLANE_H__ - -// project headers -#include "math/vector3f.h" - -// C++ headers -#include <iostream> - -namespace math { - -/// a plane in 3D space -class Plane { -public: - Plane(Vector3f const &a, Vector3f const &b, Vector3f const &c); - Plane(Vector3f const &p, Vector3f const &n); - -private: - // Point on the plane - Vector3f p0; - // Plane normal - Vector3f pn; -}; // class Plane - -} // namespace math - -#endif // __INCLUDED_MATH_PLANE_H__ |