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

Method mul

src/main/java/field/linalg/Vec2.java:283–288  ·  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

(Vec2 v, double scalar, Vec2 dest)

Source from the content-addressed store, hash-verified

281 * @param dest will hold the result
282 */
283 public static Vec2 mul(Vec2 v, double scalar, Vec2 dest) {
284 if (dest == null) dest = new Vec2();
285 dest.x = v.x * scalar;
286 dest.y = v.y * scalar;
287 return dest;
288 }
289
290 /**
291 * Linearly interpolate <code>a</code> and <code>b</code> using the given interpolation factor <code>t</code> and store the result in <code>dest</code>.

Callers 15

dropMethod · 0.95
arcMethod · 0.95
arcMethod · 0.95
PositionMethod · 0.45
beginMethod · 0.45
arcMethod · 0.45
scrollForMouseEventMethod · 0.45
__MULTIPLY__Method · 0.45
FLineToPhysicsClass · 0.45
limitVelocityMethod · 0.45
decayVelocityMethod · 0.45
MocapClass · 0.45

Calls 1

setMethod · 0.65

Tested by

no test coverage detected