aboutsummaryrefslogtreecommitdiff
path: root/src/4dvecops/transform4d.cpp
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-100.local>2023-12-08 15:04:43 -0500
committerDavid Doan <daviddoan@Davids-MacBook-Pro-100.local>2023-12-08 15:04:43 -0500
commit87be193a27a4d6ab583982e6d22eaccf154fff34 (patch)
tree4db10fc80f9077db4aab78ebd288b36ef4ca9368 /src/4dvecops/transform4d.cpp
parenta44bcf18656062785c89e8fde25c232431b0d585 (diff)
parent480c22ce9b50caad259e254d0127e99294b4c6ab (diff)
merge
Diffstat (limited to 'src/4dvecops/transform4d.cpp')
-rw-r--r--src/4dvecops/transform4d.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/4dvecops/transform4d.cpp b/src/4dvecops/transform4d.cpp
deleted file mode 100644
index 91f0d8c..0000000
--- a/src/4dvecops/transform4d.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "raytracer/raytracer.h"
-
-// this is used to transform a 4d point by a 4d matrix and its associated translation
-// this is motivated by the fact that glm does not support 5d matrices, so we cannot define a mat5 to encapsulate both the rotation and translation in one matrix
-// therefore, we break the 5d transformation into a 4d rotation and a 4d translation
-glm::vec4 transformPoint4(glm::vec4 point4, glm::mat4 transformDirectionMatrix, glm::vec4 translationPointVector) {
- // do the translation first
- point4 -= translationPointVector;
- // do the rotation and scaling
- point4 = transformDirectionMatrix * point4;
- return point4;
-} \ No newline at end of file