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

Method add

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

Add a to b and store the result in dest . @param a the first addend @param b the second addend @param dest will hold the result

(Vec2 a, Vec2 b, Vec2 dest)

Source from the content-addressed store, hash-verified

249 * @param dest will hold the result
250 */
251 public static Vec2 add(Vec2 a, Vec2 b, Vec2 dest) {
252 if (dest == null) dest = new Vec2();
253 dest.x = a.x + b.x;
254 dest.y = a.y + b.y;
255 return dest;
256 }
257
258 /**
259 * returns x*w+y in dest

Callers 6

dropMethod · 0.95
halfMethod · 0.95
polarCubicToMethod · 0.95
__rsub__Method · 0.45
__add__Method · 0.45
__radd__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected