Explanation
A very alpha version of a JS Library for doing affine transformations and (coming soon) other simple transformations I need for a bigger project. My first node module. Written in IcedCoffeeScript.
Browser Use
Node Installation
npm install -g geom2d
Usage (CoffeeScript example)
require 'geom2d' rot_left = MathPI / 4rot_right = -MathPI / 4go_big = 24go_small = 0.50.25 # 4 compositions that should net nothing # -------------------------------------- do_nothing = rot_leftcopydo_nothingrightComposeWith rot_rightdo_nothingrightComposeWith go_bigdo_nothingrightComposeWith go_small square = polygonfactoryunitSquaresquaretransform do_nothing consolelog square
Contributing
All .js
and .json
files are auto-generated. Please edit the appropropriate .iced
files and run cake build
before committing.
geom2d is written in an improved version of CoffeeScript called "IcedCoffeeScript".