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

Method dot

src/main/java/field/utility/SimpleVoronoi.java:435–441  ·  view source on GitHub ↗

Dot product. @param p the other Pnt @return dot product of this Pnt and p

(Pnt p)

Source from the content-addressed store, hash-verified

433 * @return dot product of this Pnt and p
434 */
435 public double dot(Pnt p) {
436 int len = dimCheck(p);
437 double sum = 0;
438 for (int i = 0; i < len; i++)
439 sum += this.coordinates[i] * p.coordinates[i];
440 return sum;
441 }
442
443 /**
444 * Magnitude (as a vector).

Callers 5

magnitudeMethod · 0.95
angleMethod · 0.95
bisectorMethod · 0.95
vsCircumcircleMethod · 0.95
dotFunction · 0.45

Calls 1

dimCheckMethod · 0.95

Tested by

no test coverage detected