MCPcopy Create free account
hub / github.com/demoth/jake2 / VectorLength

Method VectorLength

qcommon/src/main/java/jake2/qcommon/util/Math3D.java:107–109  ·  view source on GitHub ↗
(float v[])

Source from the content-addressed store, hash-verified

105 return length;
106 }
107 public static final float VectorLength(float v[]) {
108 return (float) Math.sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
109 }
110 public static void VectorInverse(float[] v) {
111 v[0] = -v[0];
112 v[1] = -v[1];

Callers 15

testMapMethod · 0.95
aiMethod · 0.95
findradiusMethod · 0.95
thinkMethod · 0.95
T_RadiusDamageMethod · 0.95
PlayersRangeFromSpotMethod · 0.95
rangeMethod · 0.95
FindTargetMethod · 0.95
thinkMethod · 0.95
check_dodgeMethod · 0.95
fire_hitMethod · 0.95
thinkMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMapMethod · 0.76