Normalize this vector. @return this
()
| 1045 | * @return this |
| 1046 | */ |
| 1047 | public Vec3 normalize() { |
| 1048 | double d = length(); |
| 1049 | x /= d; |
| 1050 | y /= d; |
| 1051 | z /= d; |
| 1052 | return this; |
| 1053 | } |
| 1054 | |
| 1055 | /** |
| 1056 | * Normalize this vector and store the result in <code>dest</code>. |