mirror of
https://github.com/Ragora/T2-AAConstruction.git
synced 2026-01-19 19:44:48 +00:00
18 lines
595 B
PHP
Executable file
18 lines
595 B
PHP
Executable file
//------------------------------------------------------------------------------
|
|
// Numeric Processing (C) 2010 Robert MacGregor (AKA Dark Dragon DX)
|
|
//------------------------------------------------------------------------------
|
|
|
|
function getRandomVector(%min,%max)
|
|
{
|
|
return getRandom(%min,%max) SPC getRandom(%min,%max) SPC getRandom(%min,%max);
|
|
}
|
|
|
|
function getRandomVectorAt(%vec,%min,%max)
|
|
{
|
|
return vectorAdd(%vec,getRandomVector(%min,%max));
|
|
}
|
|
|
|
function decimalToPercent(%decimal){ return %decimal * 100; }
|
|
function percentToDecimal(%percent){ return %percent / 100; }
|
|
|