aboutsummaryrefslogtreecommitdiff
path: root/src/4dvecops/transform4d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/4dvecops/transform4d.cpp')
-rw-r--r--src/4dvecops/transform4d.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/4dvecops/transform4d.cpp b/src/4dvecops/transform4d.cpp
deleted file mode 100644
index 5cc51f3..0000000
--- a/src/4dvecops/transform4d.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "vec4ops.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 Vec4Ops::transformPoint4(glm::vec4 point4, glm::mat4 transformDirectionMatrix, glm::vec4 translationPointVector) {
- // do the translation then direction
- point4 = transformDirectionMatrix * point4;
- point4 += translationPointVector;
- return point4;
-}
-
-glm::vec4 Vec4Ops::inverseTransformPoint4(glm::vec4 point4, glm::mat4 inverseTransformDirectionMatrix, glm::vec4 inverseTranslationPointVector) {
- // do the direction then translation
- point4 += inverseTranslationPointVector;
- point4 = inverseTranslationPointVector * point4;
- return point4;
-} \ No newline at end of file