summaryrefslogtreecommitdiffstats
path: root/include/core/CameraMatrix.hpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-03-01 16:28:58 +0100
committerGitHub <noreply@github.com>2021-03-01 16:28:58 +0100
commit55c0a2ea03369efefa0f795bdc7f81fbd4568a47 (patch)
tree069520ecface5af683b236029919af91dceeaf31 /include/core/CameraMatrix.hpp
parentcee79bb7a6989677812a88833fca2ed4156a117f (diff)
parentcba90d630177ce6c57b5537e74ef3eab4e9c1ea2 (diff)
downloadredot-cpp-55c0a2ea03369efefa0f795bdc7f81fbd4568a47.tar.gz
Merge pull request #525 from vnen/update-clang-format
Update clang-format to version 11
Diffstat (limited to 'include/core/CameraMatrix.hpp')
-rw-r--r--include/core/CameraMatrix.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/core/CameraMatrix.hpp b/include/core/CameraMatrix.hpp
index c90bc51..b17210e 100644
--- a/include/core/CameraMatrix.hpp
+++ b/include/core/CameraMatrix.hpp
@@ -14,7 +14,6 @@ using namespace godot;
} // namespace
struct CameraMatrix {
-
enum Planes {
PLANE_NEAR,
PLANE_FAR,
@@ -84,7 +83,6 @@ struct CameraMatrix {
};
Vector3 CameraMatrix::xform(const Vector3 &p_vec3) const {
-
Vector3 ret;
ret.x = matrix[0][0] * p_vec3.x + matrix[1][0] * p_vec3.y + matrix[2][0] * p_vec3.z + matrix[3][0];
ret.y = matrix[0][1] * p_vec3.x + matrix[1][1] * p_vec3.y + matrix[2][1] * p_vec3.z + matrix[3][1];