aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/util/math
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-11-17 19:55:02 +0100
committerLinnea Gräf <nea@nea.moe>2025-11-17 19:55:02 +0100
commitc93a04a001b0f66b2724d46b04b6d1ed49a08d07 (patch)
tree5869ca70acc482ef0362f27785c3d3f1cbb9ffae /src/test/kotlin/util/math
parentaf9893b59407c69d31ebd2ed513f0396ab4d2dc9 (diff)
downloadFirmament-c93a04a001b0f66b2724d46b04b6d1ed49a08d07.tar.gz
Firmament-c93a04a001b0f66b2724d46b04b6d1ed49a08d07.tar.bz2
Firmament-c93a04a001b0f66b2724d46b04b6d1ed49a08d07.zip
refactor: port to mojmaps
Diffstat (limited to 'src/test/kotlin/util/math')
-rw-r--r--src/test/kotlin/util/math/ProjectionsBoxTest.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/kotlin/util/math/ProjectionsBoxTest.kt b/src/test/kotlin/util/math/ProjectionsBoxTest.kt
index 04720a3..dc06e4b 100644
--- a/src/test/kotlin/util/math/ProjectionsBoxTest.kt
+++ b/src/test/kotlin/util/math/ProjectionsBoxTest.kt
@@ -5,7 +5,7 @@ import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.DynamicTest
import org.junit.jupiter.api.TestFactory
import kotlin.streams.asStream
-import net.minecraft.util.math.Vec2f
+import net.minecraft.world.phys.Vec2
import moe.nea.firmament.util.math.Projections
class ProjectionsBoxTest {
@@ -14,8 +14,8 @@ class ProjectionsBoxTest {
@TestFactory
fun testProjections(): Stream<DynamicTest> {
return sequenceOf(
- 0.0.degrees to Vec2f(1F, 0F),
- 63.4349.degrees to Vec2f(0.5F, 1F),
+ 0.0.degrees to Vec2(1F, 0F),
+ 63.4349.degrees to Vec2(0.5F, 1F),
).map { (angle, expected) ->
DynamicTest.dynamicTest("ProjectionsBoxTest::projectAngleOntoUnitBox(${angle})") {
val actual = Projections.Two.projectAngleOntoUnitBox(angle)