mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-30 23:17:53 +02:00
Update geometry.lua
This commit is contained in:
parent
25afebe8ef
commit
157d859ed0
@ -40,6 +40,10 @@ function Public.vector_sum(...)
|
||||
return result
|
||||
end
|
||||
|
||||
function Public.vector_scaled(vec, scalar)
|
||||
return { x = vec.x * scalar, y = vec.y * scalar }
|
||||
end
|
||||
|
||||
function Public.vector_distance(vec1, vec2)
|
||||
local vecx = vec2.x - vec1.x
|
||||
local vecy = vec2.y - vec1.y
|
||||
|
Loading…
Reference in New Issue
Block a user