aboutsummaryrefslogtreecommitdiff
path: root/core/math/plane.cpp
diff options
context:
space:
mode:
authorHubert Jarosz2016-03-09 00:00:52 +0100
committerRémi Verschelde2016-04-02 22:03:48 +0200
commit424a1046664eb1dc8138ccb886ba1c1967c3caa4 (patch)
tree650074feb39a8237875bfa0ef0ea842e8d96f41c /core/math/plane.cpp
parent830947feafc5e3af452296ff80a6418e9c56c5d2 (diff)
downloadgodot-424a1046664eb1dc8138ccb886ba1c1967c3caa4.tar.gz
godot-424a1046664eb1dc8138ccb886ba1c1967c3caa4.tar.zst
godot-424a1046664eb1dc8138ccb886ba1c1967c3caa4.zip
remove trailing whitespace
(cherry picked from commit 4a4f2479146aa33e235ed57cde311efda68d3c8f)
Diffstat (limited to 'core/math/plane.cpp')
-rw-r--r--core/math/plane.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/plane.cpp b/core/math/plane.cpp
index d17ce01be..b29350fe3 100644
--- a/core/math/plane.cpp
+++ b/core/math/plane.cpp
@@ -50,7 +50,7 @@ void Plane::normalize() {
}
Plane Plane::normalized() const {
-
+
Plane p = *this;
p.normalize();
return p;
@@ -66,12 +66,12 @@ Vector3 Plane::get_any_perpendicular_normal() const {
static const Vector3 p1 = Vector3(1,0,0);
static const Vector3 p2 = Vector3(0,1,0);
Vector3 p;
-
+
if (ABS(normal.dot(p1)) > 0.99) // if too similar to p1
p=p2; // use p2
else
p=p1; // use p1
-
+
p-=normal * normal.dot(p);
p.normalize();