MCPcopy Create free account
hub / github.com/Bukkit/Bukkit / angle

Method angle

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

Gets the angle between this vector and another in radians. @param other The other vector @return angle in radians

(Vector other)

Source from the content-addressed store, hash-verified

195 * @return angle in radians
196 */
197 public float angle(Vector other) {
198 double dot = dot(other) / (length() * other.length());
199
200 return (float) Math.acos(dot);
201 }
202
203 /**
204 * Sets this vector to the midpoint between this vector and another.

Callers

nothing calls this directly

Calls 2

dotMethod · 0.95
lengthMethod · 0.95

Tested by

no test coverage detected