diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-03-26 19:08:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 19:08:35 +0100 |
commit | 5c2e918513df867425b133f53de3df6cd41b67f2 (patch) | |
tree | f5b2830e0e104a08f9403a95aedaf57ca0ec0aa3 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 670b115fae0536e495e7042df84f371e1568d728 (diff) | |
download | skyhanni-5c2e918513df867425b133f53de3df6cd41b67f2.tar.gz skyhanni-5c2e918513df867425b133f53de3df6cd41b67f2.tar.bz2 skyhanni-5c2e918513df867425b133f53de3df6cd41b67f2.zip |
Feature: Pest Waypoint (#1268)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzVec.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzVec.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzVec.kt index ad85619b1..21aff40d3 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzVec.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzVec.kt @@ -60,6 +60,8 @@ data class LorenzVec( fun multiply(d: Int): LorenzVec = LorenzVec(x multiplyZeroSave d.toDouble(), y multiplyZeroSave d.toDouble(), z multiplyZeroSave d.toDouble()) + fun divide(d : Double) = multiply(1.0/d) + fun add(other: LorenzVec) = LorenzVec(x + other.x, y + other.y, z + other.z) fun subtract(other: LorenzVec) = LorenzVec(x - other.x, y - other.y, z - other.z) |