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:
parent
0c765b315e
commit
4b4bccdf84
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue