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

Method isNormalized

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

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

()

Source from the content-addressed store, hash-verified

409 * @return whether the vector is normalised
410 */
411 public boolean isNormalized() {
412 return Math.abs(this.lengthSquared() - 1) < getEpsilon();
413 }
414
415 /**
416 * Rotates the vector around the x axis.

Callers 1

rotateAroundAxisMethod · 0.80

Calls 2

lengthSquaredMethod · 0.95
getEpsilonMethod · 0.95

Tested by

no test coverage detected