Compute the half vector between this and the other vector. @param other the other vector @return this
(Vec2 other)
| 1229 | * @return this |
| 1230 | */ |
| 1231 | public Vec2 half(Vec2 other) { |
| 1232 | return this.add(other) |
| 1233 | .normalize(); |
| 1234 | } |
| 1235 | |
| 1236 | /** |
| 1237 | * Compute the half vector between this and the vector <tt>(x, y, z)</tt>. |