mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-02-07 13:31:54 +02:00
required math in all files using sin/cos
This commit is contained in:
parent
4a2e258ff3
commit
5e25efeee5
@ -4,6 +4,8 @@ For bruteforce usage, not efficient nor fast
|
|||||||
|
|
||||||
Force scales to from inf to 1 at R
|
Force scales to from inf to 1 at R
|
||||||
--]]--
|
--]]--
|
||||||
|
|
||||||
|
local math = require "utils.math"
|
||||||
local _M = {}
|
local _M = {}
|
||||||
local sqrt = math.sqrt
|
local sqrt = math.sqrt
|
||||||
local cos = math.cos
|
local cos = math.cos
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
This map uses custom ore gen. When generating the map, under the resource settings tab use Size = 'None' for all resources.
|
This map uses custom ore gen. When generating the map, under the resource settings tab use Size = 'None' for all resources.
|
||||||
]]
|
]]
|
||||||
local b = require 'map_gen.shared.builders'
|
local b = require 'map_gen.shared.builders'
|
||||||
|
local math = require "utils.math"
|
||||||
|
|
||||||
local ball_r = 16
|
local ball_r = 16
|
||||||
local big_circle = b.circle(ball_r)
|
local big_circle = b.circle(ball_r)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
local math = require "utils.math"
|
||||||
|
|
||||||
-- helpers
|
-- helpers
|
||||||
tau = 2 * math.pi
|
tau = 2 * math.pi
|
||||||
deg_to_rad = tau / 360
|
deg_to_rad = tau / 360
|
||||||
|
Loading…
x
Reference in New Issue
Block a user