Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/plane.cc')
-rw-r--r--src/model/plane.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/model/plane.cc b/src/model/plane.cc
index a637b75..6d80df6 100644
--- a/src/model/plane.cc
+++ b/src/model/plane.cc
@@ -17,25 +17,25 @@ using math::Vector3f;
* x*a() + y*b() + z*c() + d() = 0
*/
-Plane::Plane(Vector3f const & point0, Vector3f const &point1, Vector3f const &point2)
+Plane::Plane(Vector3f const & point0, Vector3f const &point1, Vector3f const &point2)
{
plane_detail = false;
plane_surface_flags = 0;
-
+
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]) );
+
+ 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);
}
-Plane::Plane(Plane const & other)
+Plane::Plane(Plane const & other)
{
- for (size_t i=0; i < 3; i++)
+ 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]) );
+
+ 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);
}