File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,14 @@ namespace omath
134
134
return len > 0 .f ? *this / len : *this ;
135
135
}
136
136
#else
137
- [[nodiscard]] Type Length () const
137
+ [[nodiscard]] Type length () const
138
138
{
139
139
return std::hypot (x, y);
140
140
}
141
141
142
- [[nodiscard]] Vector2 Normalized () const
142
+ [[nodiscard]] Vector2 normalized () const
143
143
{
144
- const Type len = Length ();
144
+ const Type len = length ();
145
145
return len > 0 .f ? *this / len : *this ;
146
146
}
147
147
#endif
Original file line number Diff line number Diff line change @@ -149,19 +149,19 @@ namespace omath
149
149
150
150
[[nodiscard]] Vector3 normalized () const
151
151
{
152
- const Type length = this ->Length ();
152
+ const Type len = this ->length ();
153
153
154
- return length != 0 ? *this / length : *this ;
154
+ return len != 0 ? *this / len : *this ;
155
155
}
156
156
157
157
[[nodiscard]] Type length_2d () const
158
158
{
159
- return Vector2<Type>::Length ();
159
+ return Vector2<Type>::length ();
160
160
}
161
161
162
162
[[nodiscard]] Type distance_to (const Vector3& vOther) const
163
163
{
164
- return (*this - vOther).Length ();
164
+ return (*this - vOther).length ();
165
165
}
166
166
#endif
167
167
You can’t perform that action at this time.
0 commit comments