| 118 | } |
| 119 | |
| 120 | Vector4 Vector4::direction_to(const Vector4 &p_to) const { |
| 121 | Vector4 ret(p_to.x - x, p_to.y - y, p_to.z - z, p_to.w - w); |
| 122 | ret.normalize(); |
| 123 | return ret; |
| 124 | } |
| 125 | |
| 126 | Vector4 Vector4::abs() const { |
| 127 | return Vector4(Math::abs(x), Math::abs(y), Math::abs(z), Math::abs(w)); |