MCPcopy Create free account
hub / github.com/Teneted/Tenet / distanceSquared

Method distanceSquared

src/main/java/org/bukkit/util/Vector.java:195–197  ·  view source on GitHub ↗

Get the squared distance between this vector and another. @param o The other vector @return the distance

(@NotNull Vector o)

Source from the content-addressed store, hash-verified

193 * @return the distance
194 */
195 public double distanceSquared(@NotNull Vector o) {
196 return NumberConversions.square(x - o.x) + NumberConversions.square(y - o.y) + NumberConversions.square(z - o.z);
197 }
198
199 /**
200 * Gets the angle between this vector and another in radians.

Callers 3

rayTraceEntitiesMethod · 0.95
rayTraceMethod · 0.95
playEffectMethod · 0.45

Calls 1

squareMethod · 0.95

Tested by

no test coverage detected