diff options
| author | Hubert Jarosz | 2016-03-09 00:00:52 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-04-02 22:03:48 +0200 |
| commit | 424a1046664eb1dc8138ccb886ba1c1967c3caa4 (patch) | |
| tree | 650074feb39a8237875bfa0ef0ea842e8d96f41c /core/math/plane.cpp | |
| parent | 830947feafc5e3af452296ff80a6418e9c56c5d2 (diff) | |
| download | godot-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.cpp | 6 |
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(); |
