Code Monkey home page Code Monkey logo

compgeom's Introduction

CompGeom

A computational geometry library using arbitrary-precision arithmetic where possible, written in Java.

How to build CompGeom

  • if you have Ant installed, it's as easy as ant compile to compile all source files in the src/ directory. Or ant jar to compile all source files except the ones in the src/test/ directory and pack all compiled classes inside a JAR file.
  • if Ant is not installed, I recommend importing the project in an IDE like Eclipse, NetBeans or IntelliJ IDEA and let the IDE compile the files, or create a JAR file of the compiled classes.

System Requirements

  • JDK/JRE 1.6 or higher
  • Ant (optional)

Usage

  • see the src/main/compgeom/demos/Examples.java class for some examples how to use the various algorithms
  • also see the API docs in the directory doc/api/
  • when executing the CompGeom JAR file (java -jar CompGeom-x.y.z.jar), the DemosLauncher class is executed which prompts a graphical dialogue window that lets you choose a demo to run

Supported

  • rational used for exact calculations
  • geometric primitives (point, line segment, line, polygon, rectangle)
  • Graham scan (convex hulls)
  • rotating calipers to find the minimum bounding box of a convex hull
  • closest pair of points
  • Shamos-Hoey algorithm
  • Bentley-Ottmann

Working on...

  • Voronoi diagram
  • Delaunay triangulation
  • polygon triangulation

compgeom's People

Contributors

bkiers avatar

Watchers

 avatar  avatar  avatar

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.