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)
| 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}. |
no outgoing calls
no test coverage detected