aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-03-26 19:08:35 +0100
committerGitHub <noreply@github.com>2024-03-26 19:08:35 +0100
commit5c2e918513df867425b133f53de3df6cd41b67f2 (patch)
treef5b2830e0e104a08f9403a95aedaf57ca0ec0aa3 /src/main/java/at/hannibal2/skyhanni/utils
parent670b115fae0536e495e7042df84f371e1568d728 (diff)
downloadskyhanni-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.kt2
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)