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

Method subtract

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

Subtracts a vector from this one. @param vec The other vector @return the same vector

(@NotNull Vector vec)

Source from the content-addressed store, hash-verified

101 * @return the same vector
102 */
103 @NotNull
104 public Vector subtract(@NotNull Vector vec) {
105 x -= vec.x;
106 y -= vec.y;
107 z -= vec.z;
108 return this;
109 }
110
111 /**
112 * Multiplies the vector by another.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected