Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
/ xross Public archive

Bentley-Ottmann implementation in TypeScript

License

Notifications You must be signed in to change notification settings

hozuki/xross

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xross

A TypeScript implementation of Bentley-Ottmann algorithm, ported from CompGeom.

Building from the Source

Install TypeScript compiler:

npm install -g typescript

Compile TypeScript sources:

tsc -p .

Testing

How-To

Run test/boot.js:

cd /path/to/project/
node test/boot.js

Current Result

  1. Common lines (PASSED)
  2. Vertical and horizontal lines only (PASSED)
  3. Overlapped lines (PASSED)
  4. Lines whose slopes are very close (FAILED)
  5. Random lines (FAILED) *(Notice that the failing cases are matched with test #4.)

About

Bentley-Ottmann implementation in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published