ilusm.dev

geo

2D/3D geometry, vectors, shapes.

Load with: use geo

Quick example

use geo

result = geov2("value", "value")
prn(result)

Functions

Vector 2D

geov2(x, y)

Performs the operation. Takes x, y.

geoad(a, b)

Adds an item. Takes a, b.

geosu(a, b)

Performs the operation. Takes a, b.

geml(v, s)

Performs the operation. Takes v, s.

gedv(v, s)

Performs the operation. Takes v, s.

geodt(a, b)

Performs the operation. Takes a, b.

geocr(a, b)

Creates a new instance. Takes a, b.

geln(v)

Performs the operation. Takes v.

genm(v)

Performs the operation. Takes v.

geort(v)

Performs the operation. Takes v.

gedst(a, b)

Sets a value or starts a process. Takes a, b.

geoan(v)

Performs the operation. Takes v.

geofm(an, ln)

Performs the operation. Takes an, ln.

geoip(a, b, t)

Performs the operation. Takes a, b, t.

Vector 3D

geov3(x, y, z)

Performs the operation. Takes x, y, z.

gev3d(a, b)

Performs the operation. Takes a, b.

gv3su(a, b)

Performs the operation. Takes a, b.

gv3ml(v, s)

Performs the operation. Takes v, s.

gv3dv(v, s)

Performs the operation. Takes v, s.

gv3dt(a, b)

Performs the operation. Takes a, b.

gv3cr(a, b)

Creates a new instance. Takes a, b.

gv3ln(v)

Performs the operation. Takes v.

gv3nm(v)

Performs the operation. Takes v.

Point

geopt(x, y)

Performs the operation. Takes x, y.

Line

geoln(p1, p2)

Performs the operation. Takes p1, p2.

glnds(l, p)

Performs the operation. Takes l, p.

gelni(l, p)

Performs the operation. Takes l, p.

Rectangle

georc(x, y, w, h)

Performs the operation. Takes x, y, w, h.

grccn(r)

Performs the operation. Takes r.

grctl(r)

Performs the operation. Takes r.

grctr(r)

Performs the operation. Takes r.

grcbl(r)

Performs the operation. Takes r.

grcbr(r)

Performs the operation. Takes r.

gercn(r, p)

Performs the operation. Takes r, p.

gerci(a, b)

Performs the operation. Takes a, b.

gercr(a, b)

Creates a new instance. Takes a, b.

Circle

geocl(x, y, r)

Closes or clears. Takes x, y, r.

gecln(c, p)

Performs the operation. Takes c, p.

gclcn(a, b)

Performs the operation. Takes a, b.

Transform

getrn(tx, ty)

Performs the operation. Takes tx, ty.

geor0(an)

Performs the operation. Takes an.

gescl(sx, sy)

Closes or clears. Takes sx, sy.

geoml(t, v)

Performs the operation. Takes t, v.

geocm(a, b)

Performs the operation. Takes a, b.

Polygon

geopl(vx)

Performs the operation. Takes vx.

geplr(p)

Performs the operation. Takes p.

gplcn(p)

Performs the operation. Takes p.

gepln(p, pt)

Performs the operation. Takes p, pt.

Notes

  • Geographic utilities - coordinates, distance, bounding boxes, GeoJSON.