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

Method lengthSquared

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

Gets the magnitude of the vector squared. @return the magnitude

()

Source from the content-addressed store, hash-verified

169 * @return the magnitude
170 */
171 public double lengthSquared() {
172 return NumberConversions.square(x) + NumberConversions.square(y) + NumberConversions.square(z);
173 }
174
175 /**
176 * Get the distance between this vector and another. The value of this

Callers 5

isNormalizedMethod · 0.95
rayTraceEntitiesMethod · 0.45
rayTraceBlocksMethod · 0.45
rayTraceMethod · 0.45
rayTraceMethod · 0.45

Calls 1

squareMethod · 0.95

Tested by

no test coverage detected