Code Monkey home page Code Monkey logo

js-convex-hull-2d's Introduction

Convex hull algorithms in two dimensions. Parent is aureooms/js-cg.

//                 * - < - * - < - *
//                /                 \
// hi[0] = lo[0] *                   * hi[p + 1] = lo[q + 1]
//                \                 /
//                 * - > - * - > - *

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-convex-hull-2d
# or
jspm install npm:@aureooms/js-convex-hull-2d

duo

No install step needed for duo!

component

component install aureooms/js-convex-hull-2d

bower

bower install @aureooms/js-convex-hull-2d

ender

ender add @aureooms/js-convex-hull-2d

jam

jam install @aureooms/js-convex-hull-2d

spm

spm install @aureooms/js-convex-hull-2d --save

npm

npm install @aureooms/js-convex-hull-2d --save

Require

jspm

let convexhull2d = require( "github:aureooms/js-convex-hull-2d" ) ;
// or
import convexhull2d from '@aureooms/js-convex-hull-2d' ;

duo

let convexhull2d = require( "aureooms/js-convex-hull-2d" ) ;

component, ender, spm, npm

let convexhull2d = require( "@aureooms/js-convex-hull-2d" ) ;

bower

The script tag exposes the global variable convexhull2d.

<script src="bower_components/@aureooms/js-convex-hull-2d/js/dist/convex-hull-2d.min.js"></script>

Alternatively, you can use any tool mentioned here.

jam

require( [ "@aureooms/js-convex-hull-2d" ] , function ( convexhull2d ) { ... } ) ;

Space

The 2^d space system object must have the following static methods:

space.crs( a , b , c ) ; // compute the cross product of ab and bc
space.dot( a , b , c ) ; // compute the dot product of ab and bc
space.col( a , b , c ) ; // test whether 3 points are colinear
space.pit( x , a , b , c ) ; // test whether x is in triangle abc
space.lex( a , b ) ; // > 0 if a comes before b in lex order
space.colex( a , b ) ; // > 0 if a comes before b in colex order
space.ccw( crs , dot , x ) ; // defines a counter clockwise ordering around x

Reference

js-convex-hull-2d's People

Contributors

greenkeeperio-bot avatar make-github-pseudonymous-again avatar

Stargazers

 avatar

Watchers

 avatar

js-convex-hull-2d's Issues

fix quickhull

Quickhull implementation is buggy, the others are not. See screenshot.
2015-09-25-223624_1366x768

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.