MVN

com.massisframework : straightedge

Maven & Gradle

Dec 21, 2015
1 usages
10 stars

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.

<dependency>
    <groupId>com.massisframework</groupId>
    <artifactId>straightedge</artifactId>
    <version>0.8</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.massisframework : straightedge to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 0.8

All Versions

Choose a version of com.massisframework : straightedge to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
0.8
straightedge-0.8

How to add a dependency to Maven

Add the following com.massisframework : straightedge maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.massisframework</groupId>
    <artifactId>straightedge</artifactId>
    <version>0.8</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.massisframework : straightedge gradle dependency to your build.gradle file:

implementation 'com.massisframework:straightedge:0.8'

Gradle Kotlin DSL: Add the following com.massisframework : straightedge gradle kotlin dependency to your build.gradle.kts file:

implementation("com.massisframework:straightedge:0.8")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.massisframework : straightedge sbt scala dependency to your build.sbt file:

libraryDependencies += "com.massisframework" % "straightedge" % "0.8"

Advertisement