minor formatting

git-svn-id: svn://anubis/fart/trunk@191 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2009-03-08 15:29:50 +00:00
parent 1ad08d9998
commit 14b6735c1c
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -41,7 +41,8 @@ Shape::IntersectionList Plane::intersect(refptr<Shape> _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;