cg

:triangular_ruler: Computational geometry data structures and algorithms for JavaScript


Keywords
agpl, algorithms, computational-geometry, computer-science, data-structures, javascript
License
AGPL-3.0
Install
bower install cg

Documentation

js-cg

Computational geometry code bricks for JavaScript. Parents are aureooms/js-algo and aureooms/js-data-structures.

vcross( vsub( b , a ) , vsub( c , a ) ) ;

NPM license NPM version Bower version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Inline docs

Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.

Install

jspm

jspm install github:aureooms/js-cg
# or
jspm install npm:aureooms-js-cg

duo

No install step needed for duo!

component

component install aureooms/js-cg

bower

bower install aureooms-js-cg

ender

ender add aureooms-js-cg

jam

jam install aureooms-js-cg

spm

spm install aureooms-js-cg --save

npm

npm install aureooms-js-cg --save

Require

jspm

let cg = require( "github:aureooms/js-cg" ) ;
// or
import cg from 'aureooms-js-cg' ;

duo

let cg = require( "aureooms/js-cg" ) ;

component, ender, spm, npm

let cg = require( "aureooms-js-cg" ) ;

bower

The script tag exposes the global variable cg.

<script src="bower_components/aureooms-js-cg/js/dist/cg.min.js"></script>

Alternatively, you can use any tool mentioned here.

jam

require( [ "aureooms-js-cg" ] , function ( cg ) { ... } ) ;

Children

Reference

Information

Code