revert ccplane

This commit is contained in:
Liam 2015-11-30 14:53:37 +08:00
parent e0349ae975
commit 4d379ed9bd
2 changed files with 0 additions and 18 deletions

View File

@ -92,17 +92,4 @@ PointSide Plane::getSide(const Vec3& point) const
return PointSide::IN_PLANE;
}
PointSide Plane::getSide(const Vec3& point, const Vec3& tolerance) const
{
float dist = dist2Plane(point);
float maxAbsDist = fabs(_normal.x * tolerance.x) + fabs(_normal.y * tolerance.y) + fabs(_normal.z * tolerance.z);
if (dist > maxAbsDist)
return PointSide::FRONT_PLANE;
else if (dist < -maxAbsDist)
return PointSide::BEHIND_PLANE;
else
return PointSide::IN_PLANE;
}
NS_CC_END

View File

@ -100,11 +100,6 @@ public:
*/
PointSide getSide(const Vec3& point) const;
/**
* Return the side where the point is.
*/
PointSide getSide(const Vec3& point, const Vec3& tolerance) const;
protected:
Vec3 _normal; // the normal line of the plane
float _dist; // original displacement of the normal