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

Method dot

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

Return the dot product of a vector and another. @param a the first vector @param v the other vector @return the dot product

(Vec2 a, Vec2 v)

Source from the content-addressed store, hash-verified

238 * @return the dot product
239 */
240 public static double dot(Vec2 a, Vec2 v) {
241 return a.x * v.x + a.y * v.y;
242 }
243
244 /**
245 * Add <code>a</code> to <code>b</code> and store the result in <code>dest</code>.

Callers 5

reflectMethod · 0.95
circumcenterOfMethod · 0.95
applyDragMethod · 0.45
isMirroringMethod · 0.45
ConvertToBezierFormMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected