MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / fma

Method fma

src/main/java/field/linalg/Vec2.java:267–274  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>.

Callers 9

circumcenterOfMethod · 0.95
fitMethod · 0.95
evaluateFrameMethod · 0.45
closestTMethod · 0.45
DMethod · 0.45
DDMethod · 0.45
targetMethod · 0.45
smoothToMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected