returns x w+y in dest @param x the vector to add to @param w the times 'w' @param y add 'y' @param dest will hold the result (automatically allocated if null) @return dest
(Vec2 x, float w, Vec2 y, Vec2 dest)
| 265 | * @return dest |
| 266 | */ |
| 267 | public static Vec2 fma(Vec2 x, float w, Vec2 y, Vec2 dest) { |
| 268 | |
| 269 | if (dest == null) dest = new Vec2(); |
| 270 | dest.x = x.x * w + y.x; |
| 271 | dest.y = x.y * w + y.y; |
| 272 | |
| 273 | return dest; |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Multiply <code>v</code> by the <code>scalar</code> value and store the result in <code>dest</code>. |
no outgoing calls
no test coverage detected