MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / length

Method length

src/main/java/com/volmit/adapt/util/Vector2f.java:114–116  ·  view source on GitHub ↗

Returns the length of this vector. @return the length of this vector

()

Source from the content-addressed store, hash-verified

112 * @return the length of this vector
113 */
114 public final float length() {
115 return (float) Math.sqrt(this.x * this.x + this.y * this.y);
116 }
117
118 /**
119 * Returns the squared length of this vector.

Callers 1

angleMethod · 0.95

Calls 1

sqrtMethod · 0.80

Tested by

no test coverage detected