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

Method length

src/main/java/com/volmit/adapt/util/Vector3f.java:115–118  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 1

angleMethod · 0.95

Calls 1

sqrtMethod · 0.80

Tested by

no test coverage detected