|
|
(2 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | | + | This page has moved to: https://docs.sine.space/v/scripting/server-scripting/library/smath |
− | =Static Public Member Functions=
| + | |
− | | + | |
− | {{ScriptFunction|static float|Random|();|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|RandomRange|(float min, float max);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|RandomInteger|(int min, int max);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Abs|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|Abs|(int v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Acos|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static bool|Approximately|(float a, float b);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Asin|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Atan|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Atan2|(float y, float x);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|Ceil|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Clamp|(float v, float min, float max);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Clamp01|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|ClosestPowerOfTwo|(int v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Cos|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|DeltaAngle|(float current, float target);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Exp|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|Floor|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|GammaToLinearSpace|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|InverseLerp|(float a, float b, float value);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static bool|IsPowerOfTwo|(int v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Lerp|(float a, float b, float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|LerpAngle|(float a, float b, float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|LerpUnclamped|(float a, float b, float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|LinearToGammaSpace|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Log|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Log|(float v, float p);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Log10|(float v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Max|(float a, float b);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Min|(float a, float b);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|MoveTowards|(float value, float target, float delta);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|MoveTowardsAngle|(float value, float target, float delta);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|NextPowerOfTwo|(int v);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|PerlinNoise|(float x, float y);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|PingPong|(float t, float length);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Pow|(float value, float pow);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Repeat|(float value, float length);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static int|Round|(float value);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Sign|(float value);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Sin|(float value);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|SmoothStep|(float edge0, float edge1, float x);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Sqrt|(float value);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{ScriptFunction|static float|Tan|(float value);|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | =Static Public Attributes=
| + | |
− | | + | |
− | {{ScriptFunction|static readonly float|Pi|{ }|description|5=<pre></pre>|6=<pre></pre>}}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |