MCPcopy Create free account
hub / github.com/Hypejet/Jet / create

Method create

api/src/main/java/net/hypejet/jet/world/coordinate/Vector.java:48–51  ·  view source on GitHub ↗

Creates a plain Vector vector with the specified X, Y and Z axis values. @param x the X axis value that the vector should have @param y the Y axis value that the vector should have @param z the Z axis value that the vector should have @return t

(double x, double y, double z)

Source from the content-addressed store, hash-verified

46 * @since 1.0
47 */
48 public static @NonNull Vector create(double x, double y, double z) {
49 if (x == ZERO.x && y == ZERO.y && z == ZERO.z) return ZERO;
50 return new Vector(x, y, z);
51 }
52
53 /**
54 * Gets a {@linkplain Vector vector} instance with all axis values set to {@code 0}.

Callers 2

fromMethod · 0.95
build.gradle.ktsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected