diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2025-03-08 11:32:33 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2025-03-08 11:32:33 -0300 |
commit | fee7157d84c3ce887a540be82dc7a7d2e0c8e368 (patch) | |
tree | c3e119fd761bdcfe6c500bda755ed571a5dd6c4c /src/main/kotlin/space/autistic/radio/complex/Complex.kt | |
parent | c97871470f0f3f224a95177ec84b3156b66f3ac4 (diff) |
Move things around default
Diffstat (limited to 'src/main/kotlin/space/autistic/radio/complex/Complex.kt')
-rw-r--r-- | src/main/kotlin/space/autistic/radio/complex/Complex.kt | 32 |
1 files changed, 0 insertions, 32 deletions
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 |