aboutsummaryrefslogtreecommitdiff
path: root/dep/include/g3dlite/G3D/Plane.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/include/g3dlite/G3D/Plane.h')
-rw-r--r--dep/include/g3dlite/G3D/Plane.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/dep/include/g3dlite/G3D/Plane.h b/dep/include/g3dlite/G3D/Plane.h
index f00c15c0988..0e53cc14666 100644
--- a/dep/include/g3dlite/G3D/Plane.h
+++ b/dep/include/g3dlite/G3D/Plane.h
@@ -25,8 +25,8 @@ class Plane {
private:
/** normal.Dot(x,y,z) = distance */
- Vector3 _normal;
- float _distance;
+ Vector3 _normal;
+ float _distance;
/**
Assumes the normal has unit length.
@@ -68,7 +68,7 @@ public:
virtual ~Plane() {}
/**
- Returns true if point is on the side the normal points to or
+ Returns true if point is on the side the normal points to or
is in the plane.
*/
inline bool halfSpaceContains(Vector3 point) const {
@@ -81,7 +81,7 @@ public:
}
/**
- Returns true if point is on the side the normal points to or
+ Returns true if point is on the side the normal points to or
is in the plane.
*/
inline bool halfSpaceContains(const Vector4& point) const {
@@ -93,7 +93,7 @@ public:
}
/**
- Returns true if point is on the side the normal points to or
+ Returns true if point is on the side the normal points to or
is in the plane. Only call on finite points. Faster than halfSpaceContains.
*/
inline bool halfSpaceContainsFinite(const Vector3& point) const {
@@ -108,9 +108,9 @@ public:
return fuzzyEq(point.dot(_normal), _distance);
}
- inline const Vector3& normal() const {
- return _normal;
- }
+ inline const Vector3& normal() const {
+ return _normal;
+ }
/**
Returns distance from point to plane. Distance is negative if point is behind (not in plane in direction opposite normal) the plane.