1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

input: Rename clamped to normalize

This commit is contained in:
Étienne Fildadut 2022-10-07 12:29:36 +09:00
parent 0c765b315e
commit 4b4bccdf84
2 changed files with 2 additions and 2 deletions

View file

@ -254,7 +254,7 @@ expressionEnv = {
-- @tparam number y value
-- @treturn number clamped x value
-- @treturn number clamped y value
clamped = function(x, y)
normalize = function(x, y)
local mag = x*x + y*y
if mag > 1 then
local d = sqrt(mag)