Normalize this vector by computing only the norm of (x, y, z) . @return this
()
| 889 | * |
| 890 | * @return this |
| 891 | */ |
| 892 | public Vec4 normalize3() { |
| 893 | double d = Math.sqrt(x * x + y * y + z * z); |
| 894 | x /= d; |
| 895 | y /= d; |
| 896 | z /= d; |
| 897 | w /= d; |
| 898 | return this; |
| 899 | } |
| 900 | |
| 901 | /** |