Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Real

Source

real REAL_MAX

Source

real REAL_MIN

Source

function real.abs() returns real

Source

Returns the abolsute value of the given real. This means, negative values will be return positive.

function real.acos() returns real

Source

The inverse trigonometric function of cosine

function real.asin() returns real

Source

The inverse trigonometric function of sine

function real.atan() returns real

Source

The inverse trigonometric function of tangent

function real.atan2(real y) returns real

Source

The arctangent function with two arguments. The second argument is needed to determine the appropriate quadrant of the computed angle.

function real.ceil() returns int

Source

Rounds the input real upward to the nearest int

function real.clamp(real lowerBound, real higherBound) returns real

Source

Limits the input real to the given range

function real.cos() returns real

Source

The trigonometric function of cosine

function real.floor() returns int

Source

Rounds the input real downward to the nearest int

function real.isBetween(real low, real high) returns boolean

Source

Checks if this real is between low and high value

function real.lerp(real target, real alpha) returns real

Source

Linear Interpolation with alphafactor(smoothness)

function real.pow(real x) returns real

Source

Returns this real to the power of the argument real

function real.round() returns int

Source

Rounds the input real to the nearest int

function real.sign() returns int

Source

Returns the sign of this real

function real.sin() returns real

Source

The trigonometric function of sine

function real.squared() returns real

Source

Returns the result of this * this, i.e. the square

function real.tan() returns real

Source

The trigonometric function of tangent

function real.toInt() returns int

Source

Converts the input real to an int. This cuts off the decimal digits. (1.9 -> 1)

function real.toString() returns string

Source

Returns the string representation of this real

function real.toString(int precision) returns string

Source

Returns the string representation of this real with the given amount if digits precision

function real.trunc() returns int

Source

Rounds the input real towards zero to the nearest int