public function int.abs() returns int
Returns the absolute value of this int
public function int.squared() returns int
Returns the square of this int
public function int.sign() returns int
returns the sign of the int
public function int.clamp(int lowerBound, int higherBound) returns int
Limits this int to the given range
public function int.toReal() returns real
Returns the int as real
public function int.toString() returns string
Returns the string representation of this int
public function int.pow(int x) returns int
Returns this int to the power of the argument int
public function int.lerp(int target, real alpha) returns int
Linear Interpolation with alphafactor(smoothness)
public function int.isBetween(int low, int high) returns bool
Checks if this int is between low and high value
public function int.bitAnd(int other) returns int
Returns the result of a bitwise AND operation performed on this int and the argument int.
public function int.bitOr(int other) returns int
Returns the result of a bitwise OR operation performed on this int and the argument int.
public function int.bitXor(int other) returns int
Returns the result of a bitwise exclusive OR operation performed on this int and the argument int.
public function int.isOdd() returns boolean
Checks whether this int is odd.
public function int.isEven() returns boolean
Checks whether this int is even.
public function int.approach(int target, int maxStep) returns int
Moves this towards target by at most maxStep (never overshoots)
public function int.wrapIndex(int length) returns int
Wraps this into [0, length-1] for cyclic indexing (length <= 0 -> 0)
public constant INT_MAX = 2147483647
public constant INT_MIN = -2147483648