aboutsummaryrefslogtreecommitdiff
path: root/core/math/vector3.cpp
diff options
context:
space:
mode:
authorJ08nY2016-10-01 20:54:31 +0200
committerJ08nY2016-10-03 13:41:45 +0200
commitf468cfc379ec74b802edf0bc89d3f65225d9250d (patch)
treebe370a400da82e9e80529825c19a32b186c09d65 /core/math/vector3.cpp
parent3ecd8560fd90a615d80a447b04e713bb2c600fe4 (diff)
downloadgodot-f468cfc379ec74b802edf0bc89d3f65225d9250d.tar.gz
godot-f468cfc379ec74b802edf0bc89d3f65225d9250d.tar.zst
godot-f468cfc379ec74b802edf0bc89d3f65225d9250d.zip
Diffstat (limited to 'core/math/vector3.cpp')
-rw-r--r--core/math/vector3.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/math/vector3.cpp b/core/math/vector3.cpp
index b4a13d8f6..fae3831dd 100644
--- a/core/math/vector3.cpp
+++ b/core/math/vector3.cpp
@@ -49,13 +49,13 @@ void Vector3::set_axis(int p_axis,real_t p_value) {
}
real_t Vector3::get_axis(int p_axis) const {
- ERR_FAIL_INDEX_V(p_axis,3,0);
- return operator[](p_axis);
+ ERR_FAIL_INDEX_V(p_axis,3,0);
+ return operator[](p_axis);
}
int Vector3::min_axis() const {
- return x < y ? (x < z ? 0 : 2) : (y < z ? 1 : 2);
+ return x < y ? (x < z ? 0 : 2) : (y < z ? 1 : 2);
}
int Vector3::max_axis() const {
@@ -71,9 +71,9 @@ void Vector3::snap(float p_val) {
}
Vector3 Vector3::snapped(float p_val) const {
- Vector3 v=*this;
- v.snap(p_val);
- return v;
+ Vector3 v=*this;
+ v.snap(p_val);
+ return v;
}