From 14b6735c1cdc85287f83d534f9f708235640af99 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 8 Mar 2009 15:29:50 +0000 Subject: [PATCH] minor formatting git-svn-id: svn://anubis/fart/trunk@191 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- shapes/Cyl.cc | 2 +- shapes/Plane.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shapes/Cyl.cc b/shapes/Cyl.cc index 79cb68c..d6c7291 100644 --- a/shapes/Cyl.cc +++ b/shapes/Cyl.cc @@ -116,7 +116,7 @@ Vector Cyl::getNormalAt(const Vector & pt) Vector normal; - if ( FP_EQUAL(local_pt[2], 0.0) && m_bottom_radius > 0.0 ) + if ( FP_EQUAL(local_pt[2], 0.0) && m_bottom_radius > 0.0 ) { normal = Vector(0, 0, -1); } diff --git a/shapes/Plane.cc b/shapes/Plane.cc index aa6c7b1..f6a56c6 100644 --- a/shapes/Plane.cc +++ b/shapes/Plane.cc @@ -41,7 +41,8 @@ Shape::IntersectionList Plane::intersect(refptr _this, const Ray & ray) if (solutions.results[0] > 0.0) { Vector isect_point = ray_inv[solutions.results[0]]; - res.add(Intersection(_this, m_transform.transform_point(isect_point))); + res.add(Intersection(_this, + m_transform.transform_point(isect_point))); } } return res;