math
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
- Community Discord
- Development IRC: [#spongedev on irc.esper.net]
Prerequisites
- Java 8
Building
In order to build math you simply need to run the mvn clean package
command. You can find the compiled JAR file in ./target
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
If you're using Gradle to manage project dependencies, simply include the following in your build.gradle
file:
repositories {
maven {
url 'https://repo.spongepowered.org/maven/'
}
}
dependencies {
implementation 'org.spongepowered:math:1.0.4-SNAPSHOT'
}
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>1.0.4-SNAPSHOT</version>
</dependency>