mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Tau (#13394)
This commit is contained in:
committed by
Probe1
parent
95f7ad63ac
commit
f897f8ed95
@@ -1,3 +1,8 @@
|
||||
#define PI 3.141592653
|
||||
|
||||
// The TRUE circle constant!
|
||||
#define TAU (PI * 2)
|
||||
|
||||
//"fancy" math for calculating time in ms from tick_usage percentage and the length of ticks
|
||||
//percent_of_tick_used * (ticklag * 100(to convert to ms)) / 100(percent ratio)
|
||||
//collapsed to percent_of_tick_used * tick_lag
|
||||
|
||||
@@ -35,8 +35,6 @@ var/global/disable_vents = 0
|
||||
#define PIPING_LAYER_P_Y -5*PIXEL_MULTIPLIER //same, but negative because they form a diagonal
|
||||
#define PIPING_LAYER_LCHANGE 0.05 //how much the layer var changes per increment
|
||||
|
||||
#define PI 3.1415
|
||||
|
||||
#define R_IDEAL_GAS_EQUATION 8.314 //kPa*L/(K*mol)
|
||||
#define ONE_ATMOSPHERE 101.325 //kPa
|
||||
#define MARS_ATMOSPHERE 0.6 //kPa
|
||||
|
||||
@@ -61,9 +61,10 @@
|
||||
|
||||
interpreter.container = src
|
||||
|
||||
interpreter.SetVar("PI", 3.141592653) // value of pi
|
||||
interpreter.SetVar("E", 2.718281828) // value of e
|
||||
interpreter.SetVar("SQURT2", 1.414213562) // value of the square root of 2
|
||||
interpreter.SetVar("TAU", TAU) // value of tau
|
||||
interpreter.SetVar("PI", PI) // value of pi
|
||||
interpreter.SetVar("E", E) // value of e
|
||||
interpreter.SetVar("SQURT2", Sqrt2) // value of the square root of 2
|
||||
interpreter.SetVar("FALSE", 0) // boolean shortcut to 0
|
||||
interpreter.SetVar("false", 0) // boolean shortcut to 0
|
||||
interpreter.SetVar("TRUE", 1) // boolean shortcut to 1
|
||||
|
||||
Reference in New Issue
Block a user