Files
cappuccino/Objective-J/Constants.js
T

95 lines
1.9 KiB
JavaScript

var undefined;
exports.environments = function()
{
return ENVIRONMENTS;
}
if (window)
{
window.setNativeTimeout = window.setTimeout;
window.clearNativeTimeout = window.clearTimeout;
window.setNativeInterval = window.setInterval;
window.clearNativeInterval = window.clearNativeInterval;
}
// Objective-J Constants
var NO = false,
YES = true,
nil = null,
Nil = null,
NULL = null,
ABS = Math.abs,
ASIN = Math.asin,
ACOS = Math.acos,
ATAN = Math.atan,
ATAN2 = Math.atan2,
SIN = Math.sin,
COS = Math.cos,
TAN = Math.tan,
EXP = Math.exp,
POW = Math.pow,
CEIL = Math.ceil,
FLOOR = Math.floor,
ROUND = Math.round,
MIN = Math.min,
MAX = Math.max,
RAND = Math.random,
SQRT = Math.sqrt,
E = Math.E,
LN2 = Math.LN2,
LN10 = Math.LN10,
LOG2E = Math.LOG2E,
LOG10E = Math.LOG10E,
PI = Math.PI,
PI2 = Math.PI * 2.0,
PI_2 = Math.PI / 2.0,
SQRT1_2 = Math.SQRT1_2,
SQRT2 = Math.SQRT2;
global.NO = NO;
global.YES = YES;
global.nil = nil;
global.Nil = Nil;
global.NULL = NULL;
global.ABS = ABS;
global.ASIN = ASIN;
global.ACOS = ACOS;
global.ATAN = ATAN;
global.ATAN2 = ATAN2;
global.SIN = SIN;
global.COS = COS;
global.TAN = TAN;
global.EXP = EXP;
global.POW = POW;
global.CEIL = CEIL;
global.FLOOR = FLOOR;
global.ROUND = ROUND;
global.MIN = MIN;
global.MAX = MAX;
global.RAND = RAND;
global.SQRT = SQRT;
global.E = E;
global.LN2 = LN2;
global.LN10 = LN10;
global.LOG2E = LOG2E;
global.LOG10E = LOG10E;
global.PI = PI;
global.PI2 = PI * 2.0,
global.PI_2 = PI / 2.0,
global.SQRT1_2 = SQRT1_2,
global.SQRT2 = SQRT2;