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

Method mul

src/main/java/field/linalg/Vec3.java:301–307  ·  view source on GitHub ↗

Multiply v by the scalar value and store the result in dest . @param v the vector to multiply @param scalar the scalar to multiply the given vector by @param dest will hold the result

(Vec3 v, double scalar, Vec3 dest)

Source from the content-addressed store, hash-verified

299 * @param dest will hold the result
300 */
301 public static Vec3 mul(Vec3 v, double scalar, Vec3 dest) {
302 if (dest == null) dest = new Vec3();
303 dest.x = v.x * scalar;
304 dest.y = v.y * scalar;
305 dest.z = v.z * scalar;
306 return dest;
307 }
308
309 /**
310 * Calculate the cross product of a and b and store the result in <code>dest</code>.

Callers 11

scaleMethod · 0.95
closestTMethod · 0.95
translateLeftMethod · 0.95
translateInMethod · 0.95
dollyInMethod · 0.95
translateUpMethod · 0.95
estimateMethod · 0.95
__rsub__Method · 0.45
__mul__Method · 0.45
__rmul__Method · 0.45
__div__Method · 0.45

Calls 1

setMethod · 0.65

Tested by

no test coverage detected