Subtract v2 from v1 and store the result in dest . @param v1 the vector to subtract from @param v2 the vector to subtract @param dest will hold the result (automatically allocated if null) @return dest
(Vec3 v1, Vec3 v2, Vec3 dest)
| 249 | * @return dest |
| 250 | */ |
| 251 | public static Vec3 sub(Vec3 v1, Vec3 v2, Vec3 dest) { |
| 252 | if (dest == null) dest = new Vec3(); |
| 253 | dest.x = v1.x - v2.x; |
| 254 | dest.y = v1.y - v2.y; |
| 255 | dest.z = v1.z - v2.z; |
| 256 | return dest; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Adds <code>v2</code> from <code>v1</code> and store the result in <code>dest</code>. |
no outgoing calls
no test coverage detected