All Projects → SpongePowered → math

SpongePowered / math

Licence: MIT license
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.

Programming Languages

java
68154 projects - #9 most used programming language

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].