diff options
author | Abdou-31 <abdou31.coding@gmail.com> | 2022-11-09 17:57:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 11:57:19 -0500 |
commit | d1b80b462eaa74a8640cf132c21f74e4f924052a (patch) | |
tree | d5804214487f339643ab6cdf74fbd113cb02cb2b /builtin/common/vector.lua | |
parent | 6191bafcadc21277be5527ed1ac05f7902e710ad (diff) | |
download | minetest-d1b80b462eaa74a8640cf132c21f74e4f924052a.tar.xz |
Fix typos and en_US/en_GB inconsistency in various files (#12902)
Diffstat (limited to 'builtin/common/vector.lua')
-rw-r--r-- | builtin/common/vector.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/common/vector.lua b/builtin/common/vector.lua index cebc99580..5ea527708 100644 --- a/builtin/common/vector.lua +++ b/builtin/common/vector.lua @@ -81,7 +81,7 @@ metatable.__eq = vector.equals function vector.length(v) return math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z) end --- Note: we can not use __len because it is already used for primitive table length +-- Note: we cannot use __len because it is already used for primitive table length function vector.normalize(v) local len = vector.length(v) @@ -356,7 +356,7 @@ function vector.dir_to_rotation(forward, up) -- Since vector.angle never returns a negative value or a value greater -- than math.pi, rot.z has to be inverted sometimes. - -- To determine wether this is the case, we rotate the up vector back around + -- To determine whether this is the case, we rotate the up vector back around -- the forward vector and check if it worked out. local back = vector.rotate_around_axis(up, forward, -rot.z) |