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

Method lengthSquared

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

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

()

Source from the content-addressed store, hash-verified

176 * @return the magnitude
177 */
178 public double lengthSquared() {
179 return NumberConversions.square(x) + NumberConversions.square(y) + NumberConversions.square(z);
180 }
181
182 /**
183 * Get the distance between this vector and another. The value of this

Callers 2

isNormalizedMethod · 0.95
rayTraceMethod · 0.45

Calls 1

squareMethod · 0.95

Tested by

no test coverage detected