Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Core/Math/Headers/Plane.h

Diff revisions: vs.
  @@ -51,18 +51,41 @@
51 51 NEGATIVE_SIDE
52 52 };
53 53
54 - Plane() : _distance(0), _active(false), _index(0) {}
55 - Plane(const Plane& rhs) : _normal(rhs._normal), _distance(rhs._distance), _active(rhs._active), _index(rhs._index) {}
54 + Plane() : _distance(0), _active(false), _index(0)
55 + {
56 + }
57 +
58 + Plane(const Plane& rhs) : _normal(rhs._normal),
59 + _distance(rhs._distance),
60 + _active(rhs._active),
61 + _index(rhs._index)
62 + {
63 + }
64 +
56 65 ///distance is stored as the negative of the specified value
57 - Plane(const vec3<T>& normal, T distance) : _normal(normal), _distance(distance), _active(false), _index(0) {}
66 + Plane(const vec3<T>& normal, T distance) : _normal(normal),
67 + _distance(distance),
68 + _active(false),
69 + _index(0)
70 + {
71 + }
72 +
58 73 ///distance is stored as the negative of the specified value
59 - Plane(T a, T b, T c, T distance) : Plane(vec3<T>(a,b,c), distance) {}
60 - Plane(const vec4<T>& plane) : Plane(plane.xyz(), plane.w) {}
61 - Plane(const vec3<T>& normal, const vec3<T>& point) : _active(false), _index(0)
74 + Plane(T a, T b, T c, T distance) : Plane(vec3<T>(a,b,c), distance)
75 + {
76 + }
77 +
78 + Plane(const vec4<T>& plane) : Plane(plane.xyz(), plane.w)
79 + {
80 + }
81 +
82 + Plane(const vec3<T>& normal, const vec3<T>& point) : _active(false),
83 + _index(0)
62 84 {
63 85 redefine(normal, point);
64 86 }
65 - Plane(const vec3<T>& point0, const vec3<T>& point1, const vec3<T>& point2) : _active(false), _index(0)
87 + Plane(const vec3<T>& point0, const vec3<T>& point1, const vec3<T>& point2) : _active(false),
88 + _index(0)
66 89 {
67 90 redefine(point0, point1, point2);
68 91 }
  @@ -99,8 +122,13 @@
99 122 inline I32 getIndex() const {return _index;}
100 123 inline void setIndex(I32 index) {_index = index;}
101 124 /// Comparison operator
102 - bool operator==(const Plane& rhs) const { return (rhs._distance == _distance && rhs._normal == _normal); }
103 - bool operator!=(const Plane& rhs) const { return (rhs._distance != _distance || rhs._normal != _normal); }
125 + bool operator==(const Plane& rhs) const {
126 + return (rhs._distance == _distance && rhs._normal == _normal);
127 + }
128 +
129 + bool operator!=(const Plane& rhs) const {
130 + return (rhs._distance != _distance || rhs._normal != _normal);
131 + }
104 132
105 133 T normalize() {
106 134 T length = _normal.length();