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.
- Source
- Issues
- Development Discord
#sponge
- Java 8
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'.
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.
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>