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

Method sub

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

Subtract b from a and store the result in dest . @param a the vector to subtract from @param b the vector to subtract @param dest will hold the result

(Vec2 a, Vec2 b, Vec2 dest)

Source from the content-addressed store, hash-verified

224 * @param dest will hold the result
225 */
226 public static Vec2 sub(Vec2 a, Vec2 b, Vec2 dest) {
227 if (dest == null) dest = new Vec2();
228 dest.x = a.x - b.x;
229 dest.y = a.y - b.y;
230 return dest;
231 }
232
233 /**
234 * Return the dot product of a vector and another.

Callers 15

arcMethod · 0.95
arcMethod · 0.95
arcMethod · 0.95
circumcenterOfMethod · 0.95
rotateToXMethod · 0.95
polarCubicToMethod · 0.95
deltaToStabalizeMethod · 0.45
describeMethod · 0.45
describeMethod · 0.45
applyDragMethod · 0.45
runMethod · 0.45
UIGroupClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected