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

Method fma

src/main/java/field/linalg/Vec3.java:284–292  ·  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

(Vec3 x, double w, Vec3 y, Vec3 dest)

Source from the content-addressed store, hash-verified

282 * @return dest
283 */
284 public static Vec3 fma(Vec3 x, double w, Vec3 y, Vec3 dest) {
285
286 if (dest == null) dest = new Vec3();
287 dest.x = x.x * w + y.x;
288 dest.y = x.y * w + y.y;
289 dest.z = x.z * w + y.z;
290
291 return dest;
292 }
293
294 /**
295 * Multiply <code>v</code> by the <code>scalar</code> value and store the result in <code>dest</code>.

Callers 1

circumcenterOfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected