mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Vector3: format properly, fix indents
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user