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

Method isNormalized

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

Returns if a vector is normalized @return whether the vector is normalised

()

Source from the content-addressed store, hash-verified

425 * @return whether the vector is normalised
426 */
427 public boolean isNormalized() {
428 return Math.abs(this.lengthSquared() - 1) < getEpsilon();
429 }
430
431 /**
432 * Rotates the vector around the x axis.

Callers 2

testNormalisedVectorsMethod · 0.80
rotateAroundAxisMethod · 0.80

Calls 2

lengthSquaredMethod · 0.95
getEpsilonMethod · 0.95

Tested by 1

testNormalisedVectorsMethod · 0.64