Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mineking9534/mathutils.kt

Kotlin extension functions for https://github.com/MineKing9534/MathUtils
https://github.com/mineking9534/mathutils.kt

kotlin math

Last synced: 1 day ago
JSON representation

Kotlin extension functions for https://github.com/MineKing9534/MathUtils

Awesome Lists containing this project

README

        

![[Java CI]](https://github.com/MineKing9534/MathUtils.kt/actions/workflows/check.yml/badge.svg)
![[Latest Version]](https://maven.mineking.dev/api/badge/latest/releases/de/mineking/MathUtils.kt?prefix=v&name=Latest%20Version&color=0374b5)

# Installation

MathUtils.kt is hosted on a custom repository at [https://maven.mineking.dev](https://maven.mineking.dev/#/releases/de/mineking/MathUtils.kt). Replace VERSION with the lastest version (without the `v` prefix).
Alternatively, you can download the artifacts from jitpack (not recommended).

### Gradle

```groovy
repositories {
maven { url "https://maven.mineking.dev/releases" }
}

dependencies {
implementation "de.mineking:MathUtils.kt:VERSION"
}
```

### Maven

```xml


mineking
https://maven.mineking.dev/releases


de.mineking
MathUtils.kt
VERSION

```

# Usage
This extension library simplifies handling `Node` operations.

```kotlin
val a: Node = Constant.ONE
val b: Node = Constant.TWO
var c = Sum.create(a, b)
```
becomes
```kotlin
val a: Node = Constant.ONE
val b: Node = Constant.TWO
var c = a + b
```

The operators `-`, `*` and `/` will also work as expected