MCPcopy Index your code
hub / github.com/PaperMC/Paper / dot

Method dot

paper-api/src/main/java/org/bukkit/util/Vector.java:298–300  ·  view source on GitHub ↗

Calculates the dot product of this vector with another. The dot product is defined as x1 x2+y1 y2+z1 z2. The returned value is a scalar. @param other The other vector @return dot product

(@NotNull Vector other)

Source from the content-addressed store, hash-verified

296 * @return dot product
297 */
298 public double dot(@NotNull Vector other) {
299 return x * other.x + y * other.y + z * other.z;
300 }
301
302 /**
303 * Calculates the cross product of this vector with another. The cross

Callers 2

angleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected