Skip to content

3.3 RELEASE

Latest
Compare
Choose a tag to compare
@JustinSDK JustinSDK released this 11 Oct 09:42

Deprecated

Signature Description
rails2sections use maxtrix/m_transpose instead.
util/sort use util/sorted instead.
util/has use util/contains instead.
util/bsearch use util/binary_search instead.
maze/mz_square_cells use maze/mz_square.
maze/mz_square_walls use maze/mz_squarewalls instead.
maze/mz_hex_walls use maze/mz_hexwalls instead.
maze/mz_theta_cells use maze/mz_theta instead.

Util

Signature Description
util/sorted(lt[, cmp, key, reverse]) sort a list.
util/contains(lt, elem) return true if lt contains elem.
util/binary_search(sorted, target[, lo, hi]) search a value in a sorted list.
util/count(lt, test) return the number of times test return true in the list.

Matrix

Signature Description
matrix/m_replace(m, i, j, value) replace the aᵢⱼ element of a matrix.

Triangle

Signature Description
triangle/tri_subdivide(shape_pts[, n]) subdivide a triangle n times.

Point Picking

Signature Description
pp/pp_disk(radius, value_count[, seed]) generate random points over a disk.
pp/pp_sphere(radius, value_count[, seed]) pick random points on the surface of a sphere.
pp/pp_poisson2(size, r[, start, k, seed]) perform poisson sampling over a rectangle area.
pp/pp_poisson3(size, r[, start, k, seed]) perform poisson sampling over a cube space.

Maze

Signature Description
maze/mz_square([rows, columns, start, init_cells, x_wrapping, y_wrapping, seed]) return cell data of a square maze.
maze/mz_squarewalls(cells, cell_width[, left_border, bottom_border]) a helper for creating square wall data from maze cells.
maze/mz_hexwalls(cells, cell_radius[, left_border, bottom_border]) a helper for creating hex wall data from maze cells.
maze/mz_theta(rings, beginning_number[, start, seed]) return cell data of a theta maze.
maze/mz_tiles(cells[, left_border, bottom_border]) turn maze cells into tiles.