Skip to content

Commit 449c601

Browse files
committed
bugfix
1 parent 31d3359 commit 449c601

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/omath/vector2.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ namespace omath
134134
return len > 0.f ? *this / len : *this;
135135
}
136136
#else
137-
[[nodiscard]] Type Length() const
137+
[[nodiscard]] Type length() const
138138
{
139139
return std::hypot(x, y);
140140
}
141141

142-
[[nodiscard]] Vector2 Normalized() const
142+
[[nodiscard]] Vector2 normalized() const
143143
{
144-
const Type len = Length();
144+
const Type len = length();
145145
return len > 0.f ? *this / len : *this;
146146
}
147147
#endif

include/omath/vector3.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,19 @@ namespace omath
149149

150150
[[nodiscard]] Vector3 normalized() const
151151
{
152-
const Type length = this->Length();
152+
const Type len = this->length();
153153

154-
return length != 0 ? *this / length : *this;
154+
return len != 0 ? *this / len : *this;
155155
}
156156

157157
[[nodiscard]] Type length_2d() const
158158
{
159-
return Vector2<Type>::Length();
159+
return Vector2<Type>::length();
160160
}
161161

162162
[[nodiscard]] Type distance_to(const Vector3& vOther) const
163163
{
164-
return (*this - vOther).Length();
164+
return (*this - vOther).length();
165165
}
166166
#endif
167167

0 commit comments

Comments
 (0)