naming conventions act 2: the end
This commit is contained in:
@@ -8,17 +8,17 @@ function math.sign(x)
|
||||
end
|
||||
end
|
||||
|
||||
function Vector(init_x, init_y, final_x, final_y)
|
||||
function vector(init_x, init_y, final_x, final_y)
|
||||
local distance_x = final_x - init_x
|
||||
local distance_y = final_y - init_y
|
||||
return {distance_x, distance_y}
|
||||
end
|
||||
|
||||
function GetVectorValue(vector)
|
||||
function getVectorValue(vector)
|
||||
return math.sqrt(vector[1] ^ 2 + vector[2] ^ 2)
|
||||
end
|
||||
|
||||
function GetAngleFromVector(x,y)
|
||||
function getAngleFromVector(x,y)
|
||||
local reduce = 0
|
||||
if x < 0 then
|
||||
reduce = math.rad(180)
|
||||
|
||||
Reference in New Issue
Block a user