Browse Source

Fix Style Issues

NHodgesVFX 5 years ago
parent
commit
82476108ba
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/core/Vector2.hpp
  2. 1 1
      include/core/Vector3.hpp

+ 1 - 1
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 {

+ 1 - 1
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 {