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

Method add

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

Adds v2 from v1 and store the result in dest . @param v1 the vector to add to @param v2 the vector to add @param dest will hold the result (automatically allocated if null) @return dest

(Vec3 v1, Vec3 v2, Vec3 dest)

Source from the content-addressed store, hash-verified

265 * @return dest
266 */
267 public static Vec3 add(Vec3 v1, Vec3 v2, Vec3 dest) {
268 if (dest == null) dest = new Vec3();
269 dest.x = v1.x + v2.x;
270 dest.y = v1.y + v2.y;
271 dest.z = v1.z + v2.z;
272 return dest;
273 }
274
275 /**
276 * returns x*w+y in dest

Callers 11

copyFromFileCalledMethod · 0.95
halfMethod · 0.95
orbitLeftMethod · 0.95
orbitUpMethod · 0.95
lookLeftMethod · 0.95
lookUpMethod · 0.95
polarCubicTo3Method · 0.95
estimateMethod · 0.95
__rsub__Method · 0.45
__add__Method · 0.45
__radd__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected