aboutsummaryrefslogtreecommitdiff
path: root/core/math/plane.cpp
diff options
context:
space:
mode:
authorWilson E. Alvarez2017-08-12 07:04:30 -0400
committerWilson E. Alvarez2017-08-14 13:28:06 -0400
commit21d281c4a953404c8f13e1cb7ee8d4cf9c25bb4c (patch)
tree2a4144fca78e6fc84efec7583297f6d8dcea9614 /core/math/plane.cpp
parent9575dbdf788e8a5154b3ec2f66913e731ac02850 (diff)
downloadgodot-21d281c4a953404c8f13e1cb7ee8d4cf9c25bb4c.tar.gz
godot-21d281c4a953404c8f13e1cb7ee8d4cf9c25bb4c.tar.zst
godot-21d281c4a953404c8f13e1cb7ee8d4cf9c25bb4c.zip
Diffstat (limited to 'core/math/plane.cpp')
-rw-r--r--core/math/plane.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/plane.cpp b/core/math/plane.cpp
index f5e92866c..17928d07c 100644
--- a/core/math/plane.cpp
+++ b/core/math/plane.cpp
@@ -103,7 +103,7 @@ bool Plane::intersect_3(const Plane &p_plane1, const Plane &p_plane2, Vector3 *r
return true;
}
-bool Plane::intersects_ray(Vector3 p_from, Vector3 p_dir, Vector3 *p_intersection) const {
+bool Plane::intersects_ray(const Vector3 &p_from, const Vector3 &p_dir, Vector3 *p_intersection) const {
Vector3 segment = p_dir;
real_t den = normal.dot(segment);
@@ -128,7 +128,7 @@ bool Plane::intersects_ray(Vector3 p_from, Vector3 p_dir, Vector3 *p_intersectio
return true;
}
-bool Plane::intersects_segment(Vector3 p_begin, Vector3 p_end, Vector3 *p_intersection) const {
+bool Plane::intersects_segment(const Vector3 &p_begin, const Vector3 &p_end, Vector3 *p_intersection) const {
Vector3 segment = p_begin - p_end;
real_t den = normal.dot(segment);