Download straightedge JAR 0.8 with all dependencies
Includes 2 main parts:
- Path finding through 2D polygons using the A star algorithm and navigation-mesh generation
Field of vision / shadows / line of sight / lighting.
The basic polygon and point classes are the KPolygon and KPoint.
KPolygon contains a list of KPoints for vertices as well as a center (centroid), area, and radius (circular bound or distance from center to furthest point).
KPolygon was born out of the need for a more game-oriented and flexible polygon class than the Path2D class in the standard Java library. KPolygon implements java.awt.geom.Shape so it can be easily drawn and filled by Java2D's Graphics2D object.
- This API provides path-finding and field-of-vision. For other complex geometric operations such as buffering (fattening and shrinking) and constructive area geometry (intersections and unions) it is recommended to use the excellent Java Topology Suite (JTS). The standard Java2D library also provides the Area class which can be used for some constructive area geometry operations. Note that there is a utility class PolygonConverter that can quickly convert KPolygons to JTS polygons and vice versa.
Files of the artifact straightedge version 0.8 from the group com.massisframework.
Test
Artifact straightedge
Group com.massisframework
Version 0.8
Last update 21. December 2015
Tags: need using unions kpoint vertices geom kpolygon parts contains used filled centroid center polygon circular more basic oriented generation mesh versa such java2d class shape flexible geometry that navigation than constructive radius suite some this born complex other vice convert recommended easily line polygonconverter excellent from object through well includes geometric algorithm sight distance area finding path kpoints shrinking topology polygons drawn note classes buffering standard fattening vision star graphics2d provides list game shadows main field point intersections kpolygons which lighting utility furthest there library implements java operations also quickly bound path2d
Organization not specified
URL https://github.com/rpax/straightedge
License New BSD License
Dependencies amount 1
Dependencies jts,
There are maybe transitive dependencies!
Group com.massisframework
Version 0.8
Last update 21. December 2015
Tags: need using unions kpoint vertices geom kpolygon parts contains used filled centroid center polygon circular more basic oriented generation mesh versa such java2d class shape flexible geometry that navigation than constructive radius suite some this born complex other vice convert recommended easily line polygonconverter excellent from object through well includes geometric algorithm sight distance area finding path kpoints shrinking topology polygons drawn note classes buffering standard fattening vision star graphics2d provides list game shadows main field point intersections kpolygons which lighting utility furthest there library implements java operations also quickly bound path2d
Organization not specified
URL https://github.com/rpax/straightedge
License New BSD License
Dependencies amount 1
Dependencies jts,
There are maybe transitive dependencies!
The newest version!
Show all versions of straightedge Show documentation
Please rate this JAR file. Is it a good library?
1 downloads
Source code of straightedge version 0.8
META-INF
straightedge.geom
straightedge.geom.path
straightedge.geom.util
straightedge.geom.vision
straightedge.test
straightedge.test.benchmark
straightedge.test.benchmark.event
straightedge.test.demo
straightedge.test.experimental
straightedge.test.experimental.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy