Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 2.41 KB

README.md

File metadata and controls

65 lines (48 loc) · 2.41 KB

Math

GitHub Workflow Status (branch) MIT License Maven Central Sonatype Nexus (Snapshots)

Immutable math library for Java that offers easy conversion between math types, fast trigonometric functions, vectors, matrices, complex numbers, quaternions, and operation chaining, with a focus on games and computer graphics.

Prerequisites

  • Java 8

Building

In order to build math you simply need to run the ./gradlew build command. You can find the compiled JAR file in ./build/libs labeled similarly to 'math-x.x.x-SNAPSHOT.jar'.

Contributing

Are you a talented programmer looking to contribute some code? We'd love the help!

  • Open a pull request with your changes, following our guidelines.

Usage

Releases are published to Sponge's own repository, Maven Central, and GitHub Packages. Snapshots are published to Sponge's repository and Sonatype OSS.

If you're using Gradle to manage project dependencies, simply include the following in your build.gradle file:

repositories {
  mavenCentral()

  // Alternatively
  maven {
    url "https://repo.spongepowered.org/repository/maven-public"
    name "sponge"
  }
}

dependencies {
  implementation "org.spongepowered:math:2.0.1"
}

If you're using Maven to manage project dependencies, simply include the following in your pom.xml file:

<dependency>
  <groupId>org.spongepowered</groupId>
  <artifactId>math</artifactId>
  <version>2.0.1</version>
</dependency>

Credits

  • Spout and contributors - where we all began, and for much of the re-licensed code.
  • All the people behind Java, Maven, and Gradle.