summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNHodgesVFX <test@test.com>2020-02-06 18:44:50 -0500
committerNHodgesVFX <test@test.com>2020-02-06 18:44:50 -0500
commit82476108bab5d59d2fddec97138296d7b9ae4494 (patch)
treeae4d113132febec0d695f3afc8cea7143c41a3a5 /include
parenta2e6f7a5efab2fcf765429aa6985a6faca750c74 (diff)
downloadredot-cpp-82476108bab5d59d2fddec97138296d7b9ae4494.tar.gz
Fix Style Issues
Diffstat (limited to 'include')
-rw-r--r--include/core/Vector2.hpp2
-rw-r--r--include/core/Vector3.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/core/Vector2.hpp b/include/core/Vector2.hpp
index 5364330..d7c00b5 100644
--- a/include/core/Vector2.hpp
+++ b/include/core/Vector2.hpp
@@ -181,7 +181,7 @@ struct Vector2 {
}
inline Vector2 reflect(const Vector2 &p_normal) const {
- return -(*this -p_normal * this->dot(p_normal) * 2.0);
+ return -(*this - p_normal * this->dot(p_normal) * 2.0);
}
inline real_t angle() const {
diff --git a/include/core/Vector3.hpp b/include/core/Vector3.hpp
index 8b39113..144e369 100644
--- a/include/core/Vector3.hpp
+++ b/include/core/Vector3.hpp
@@ -239,7 +239,7 @@ struct Vector3 {
}
inline Vector3 reflect(const Vector3 &p_normal) const {
- return -(*this - p_normal * this->dot(p_normal) * 2.f);
+ return -(*this - p_normal * this->dot(p_normal) * 2.0);
}
inline Vector3 rotated(const Vector3 &axis, const real_t phi) const {