From 930db4020b9af2ccd999cb3a8c980cc9d527f8cf Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 May 2008 10:19:16 +0000 Subject: client-side axis interpolation --- src/math/plane3f.cc | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/math/plane3f.cc (limited to 'src/math/plane3f.cc') diff --git a/src/math/plane3f.cc b/src/math/plane3f.cc deleted file mode 100644 index 232bc98..0000000 --- a/src/math/plane3f.cc +++ /dev/null @@ -1,32 +0,0 @@ -/* - math/plane3f.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 -*/ - -#include "math/plane3f.h" -#include - -namespace math -{ - -Plane3f::Plane3f(Vector3f const & point0, Vector3f const &point1, Vector3f const &point2) -{ - plane_point[0] = point0; - plane_point[1] = point1; - plane_point[2] = point2; - - plane_normal = crossproduct((plane_point[1] - plane_point[0]) , (plane_point[2] - plane_point[0]) ); - pd = -1 * (plane_normal.x * plane_point[0].x + plane_normal.y * plane_point[0].y + plane_normal.z * plane_point[0].z); -} - -Plane3f::Plane3f(Plane3f const & other) -{ - for (size_t i=0; i < 3; i++) - this->plane_point[i] = other.plane_point[i]; - - plane_normal = crossproduct((plane_point[1] - plane_point[0]) , (plane_point[2] - plane_point[0]) ); - pd = -1 * (plane_normal.x * plane_point[0].x + plane_normal.y * plane_point[0].y + plane_normal.z * plane_point[0].z); -} - -} -- cgit v1.2.3