mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Fix typos and en_US/en_GB inconsistency in various files (#12902)
This commit is contained in:
parent
6191bafcad
commit
d1b80b462e
84 changed files with 134 additions and 134 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue