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.
Install / Use
/learn @SpongePowered/MathREADME
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
- Development Discord
#sponge
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
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
