Skip to content

仓库 files navigation

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

发布 are published to Sponge's own repository, Maven Central, and GitHub 包. 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.

关于

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.

Resources

Contributing

Stars

67 stars

关注者

16 watching

复刻s

发布

Sponsor this project

Used by

贡献者

Languages