aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/Camera.kt
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2020-12-28 16:25:19 +0000
committerJames Barnett <noreply@jamesbarnett.xyz>2020-12-28 16:25:19 +0000
commit9e886b392fbc6f8dfac1ce8f6943a7a1679bce74 (patch)
tree81ff992d818b5aa92090b6c02f5685e08bb6fdab /src/main/kotlin/Camera.kt
parentf28500d963d6546feda522d7748a0462a568ba28 (diff)
downloadkotlin-raycaster-9e886b392fbc6f8dfac1ce8f6943a7a1679bce74.tar.xz
kotlin-raycaster-9e886b392fbc6f8dfac1ce8f6943a7a1679bce74.zip
Refactor input handling. General cleanup
Diffstat (limited to 'src/main/kotlin/Camera.kt')
-rw-r--r--src/main/kotlin/Camera.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/kotlin/Camera.kt b/src/main/kotlin/Camera.kt
index 7d4bcfc..4eb8d43 100644
--- a/src/main/kotlin/Camera.kt
+++ b/src/main/kotlin/Camera.kt
@@ -1,8 +1,6 @@
-class Camera(
+data class Camera(
val fov: Int,
var xPos: Double,
var yPos: Double,
var rotation: Double
-) {
- val halfFov = fov / 2
-} \ No newline at end of file
+) \ No newline at end of file