Skip to content
math for origami. linear algebra, geometry, primitives like vectors, polygons, matrices
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.eslintrc.json
.gitignore
.travis.yml
math.js
math.min.js
package.json
readme.md
rollup.config.js

readme.md

math for origami

Build Status

this is the math engine for an origami library. it has no dependencies, and it's small. you probably want a different math library if a search brought you here.

the reason

i wrote this, instead of using another library, because origami math mostly deals with edge cases, like asking the intersection when two lines are parallel, or on top of a polygon's edge. or asking the intersection when an segment's endpoint lies collinear along a line, and should it be inclusive or exclusive. all the time managing a flexible epsilon.

html

<script src="math.js"></script>

node

run it locally. it's not on npm

require("math");

dev

Build the source yourself: rollup -c

this is a umd module. you can build an es module if you want, change the setting in rollup.config.js.

You can’t perform that action at this time.