This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
System
Tor (torbuntu) edited this page Apr 17, 2021
·
3 revisions
The Leikr System object contains an advanced system API as well as methods for maths operations.
Maths Utils | |
---|---|
float cos(radians) |
|
float cosDeg(degrees) |
|
float sin(radians) |
|
float sinDeg(degrees) |
|
float ceil(value) |
|
float floor(value) |
|
int randInt(range) |
|
int randInt(start, end) |
|
float randFloat(range) |
|
float randFloat(start, end) |
|
int round(value) |
These items are subject to change or complete removal.
Experimental | |
---|---|
boolean collides(x1, y1, w1, h1, x2, y2, w2, h2 |
|
boolean collides(a[], b[]) |
|
boolean point(x, y, x2, y2, w, h) |
|
Object compile(path) |
|
void compile(path, output) |
|
Object eval(code) |
|
Object parse(code) |
|
void loadLib(path) |
|
Object newInstance(name) |