diff options
author | George Marques <george@gmarqu.es> | 2021-02-28 16:52:06 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-02-28 16:57:34 -0300 |
commit | cba90d630177ce6c57b5537e74ef3eab4e9c1ea2 (patch) | |
tree | 439897c2673d4f0af2635abffe73699d0cae6a01 /include/core/CameraMatrix.hpp | |
parent | 77d41fa179e40560f1e264ed483638bf51713779 (diff) | |
download | redot-cpp-cba90d630177ce6c57b5537e74ef3eab4e9c1ea2.tar.gz |
Update clang-format to version 11
This is taken from the Godot repository, so formatting is similar. This
updates the style rules as well.
Also fix style in files to conform with this version.
Diffstat (limited to 'include/core/CameraMatrix.hpp')
-rw-r--r-- | include/core/CameraMatrix.hpp | 2 |
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]; |