public ExternalClass Load() { var output = new ExternalFunction( "Output", true, Output ); var input = new ExternalFunction( "Input", true, Input ); return new ExternalClass( "Console", InstanceFlags.NoFlags, output, input, new ExternalFunction( "Clear", true, Clear ) ); }
public ExternalClass Load() { var piConst = new ExternalProperty( "PI", true, pi ); var sin = new ExternalFunction( "Sin", true, Sin ); var cos = new ExternalFunction( "Cos", true, Cos ); var tan = new ExternalFunction( "Tan", true, Tan ); var asin = new ExternalFunction( "Asin", true, Asin ); var acos = new ExternalFunction( "Acos", true, Acos ); var atan = new ExternalFunction( "Atan", true, Atan ); var floor = new ExternalFunction( "Floor", true, Floor ); var ceil = new ExternalFunction( "Ceiling", true, Ceiling ); var rand = new ExternalFunction( "Random", true, Random ); return new ExternalClass( "Math", InstanceFlags.NoFlags, piConst, sin, cos, tan, asin, acos, atan, floor, ceil, rand ); }