Vector3: format properly, fix indents

This commit is contained in:
J08nY
2016-10-01 20:54:31 +02:00
parent 3ecd8560fd
commit f468cfc379
2 changed files with 100 additions and 97 deletions

View File

@@ -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;
}