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

Method normalizeZeros

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

Converts each component of value -0.0 to 0.0 . @return This vector.

()

Source from the content-addressed store, hash-verified

371 * @return This vector.
372 */
373 @NotNull
374 Vector normalizeZeros() {
375 if (x == -0.0D) x = 0.0D;
376 if (y == -0.0D) y = 0.0D;
377 if (z == -0.0D) z = 0.0D;
378 return this;
379 }
380
381 /**
382 * Returns whether this vector is in an axis-aligned bounding box.

Callers 1

rayTraceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected