straightedge

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.

License

License

GroupId

GroupId

com.massisframework
ArtifactId

ArtifactId

straightedge
Last Version

Last Version

0.8
Release Date

Release Date

Type

Type

jar
Description

Description

straightedge
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.
Project URL

Project URL

https://github.com/rpax/straightedge

Download straightedge

How to add to project

<!-- https://jarcasting.com/artifacts/com.massisframework/straightedge/ -->
<dependency>
    <groupId>com.massisframework</groupId>
    <artifactId>straightedge</artifactId>
    <version>0.8</version>
</dependency>
// https://jarcasting.com/artifacts/com.massisframework/straightedge/
implementation 'com.massisframework:straightedge:0.8'
// https://jarcasting.com/artifacts/com.massisframework/straightedge/
implementation ("com.massisframework:straightedge:0.8")
'com.massisframework:straightedge:jar:0.8'
<dependency org="com.massisframework" name="straightedge" rev="0.8">
  <artifact name="straightedge" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.massisframework', module='straightedge', version='0.8')
)
libraryDependencies += "com.massisframework" % "straightedge" % "0.8"
[com.massisframework/straightedge "0.8"]

Dependencies

compile (1)

Group / Artifact Type Version
com.vividsolutions : jts jar 1.11

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

Versions

Version
0.8