From fee7157d84c3ce887a540be82dc7a7d2e0c8e368 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 8 Mar 2025 11:32:33 -0300 Subject: Move things around --- .../kotlin/space/autistic/radio/complex/Complex.kt | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/main/kotlin/space/autistic/radio/complex/Complex.kt (limited to 'src/main/kotlin/space/autistic/radio/complex') diff --git a/src/main/kotlin/space/autistic/radio/complex/Complex.kt b/src/main/kotlin/space/autistic/radio/complex/Complex.kt deleted file mode 100644 index 918dac2..0000000 --- a/src/main/kotlin/space/autistic/radio/complex/Complex.kt +++ /dev/null @@ -1,32 +0,0 @@ -package space.autistic.radio.complex - -import org.joml.Vector2f -import org.joml.Vector2fc - -fun Vector2f.cmul(v: Vector2fc): Vector2f { - return this.cmul(v, this) -} - -fun Vector2f.cmul(v: Vector2fc, dest: Vector2f): Vector2f { - val a = this.x * v.x() - val b = this.y * v.y() - val c = (this.x() + this.y()) * (v.x() + v.y()) - val x = a - b - val y = c - a - b - dest.x = x - dest.y = y - return dest -} - -fun Vector2f.conjugate(): Vector2f { - return this.conjugate(this) -} - -fun Vector2f.conjugate(dest: Vector2f): Vector2f { - dest.x = this.x() - dest.y = -this.y() - return dest -} - -val I - get() = Vector2f(0f, 1f) \ No newline at end of file -- cgit 1.4.1