From 1d45d8ecb4633f07a0ff163255dbedc3c3a72ac8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 24 Feb 2008 18:00:48 +0000 Subject: removed plane.h plane.cc --- src/math/Makefile.am | 4 ++-- src/math/plane.cc | 28 ---------------------------- src/math/plane.h | 33 --------------------------------- 3 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 src/math/plane.cc delete mode 100644 src/math/plane.h 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 - -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 - -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__ -- cgit v1.2.3