@@ -21,7 +21,7 @@ class vec2d
21
21
: x( x ), y( y ) {}
22
22
23
23
24
- static inline vec2d PolarCoords ( float angle, float magnitude ) {
24
+ static inline vec2d polar_coords ( float angle, float magnitude ) {
25
25
return vec2d ( magnitude * std::cos ( angle ), magnitude * std::sin ( angle ));
26
26
}
27
27
@@ -43,7 +43,7 @@ class vec2d
43
43
}
44
44
45
45
46
- inline vec2d Normalized () const {
46
+ inline vec2d normalized () const {
47
47
float magnitude = get_magnitude ();
48
48
49
49
return vec2d ( x / magnitude, y / magnitude );
@@ -84,12 +84,6 @@ class vec2d
84
84
str << " (" << x << " , " << y << " )" ;
85
85
return str.str ();
86
86
}
87
-
88
- /*
89
- inline std::string GetString() const {
90
- return ToString();
91
- }
92
- */
93
87
};
94
88
95
89
@@ -139,7 +133,7 @@ inline vec2d operator - ( vec2d vec ) {
139
133
// NORMALIZATION
140
134
141
135
inline vec2d operator ~ ( vec2d vec ) {
142
- return vec.Normalized ();
136
+ return vec.normalized ();
143
137
}
144
138
145
139
@@ -148,7 +142,7 @@ inline vec2d operator ~ ( vec2d vec ) {
148
142
149
143
// Checks if the points are in counter clockwise order //
150
144
151
- inline bool IsCounterClockwise ( const vec2d first, const vec2d second, const vec2d third ) {
145
+ inline bool is_counter_clockwise ( const vec2d first, const vec2d second, const vec2d third ) {
152
146
float dx1, dx2, dy1, dy2;
153
147
154
148
dx1 = second.x - first.x ;
@@ -171,4 +165,4 @@ inline bool IsCounterClockwise( const vec2d first, const vec2d second, const vec
171
165
172
166
173
167
174
- #endif
168
+ #endif
0 commit comments