Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mineking9534/mathutils.kt
- Owner: MineKing9534
- License: mit
- Created: 2024-04-11T13:26:46.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-04-11T16:42:22.000Z (7 months ago)
- Last Synced: 2024-04-12T21:33:39.500Z (7 months ago)
- Topics: kotlin, math
- Language: Kotlin
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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