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

Method G_ProjectSource

qcommon/src/main/java/jake2/qcommon/util/Math3D.java:439–448  ·  view source on GitHub ↗
(
		float[] point,
		float[] distance,
		float[] forward,
		float[] right,
		float[] result)

Source from the content-addressed store, hash-verified

437 }
438 }
439 public static void G_ProjectSource(
440 float[] point,
441 float[] distance,
442 float[] forward,
443 float[] right,
444 float[] result) {
445 result[0] = point[0] + forward[0] * distance[0] + right[0] * distance[1];
446 result[1] = point[1] + forward[1] * distance[0] + right[1] * distance[1];
447 result[2] = point[2] + forward[2] * distance[0] + right[2] * distance[1] + distance[2];
448 }
449 public static final float DotProduct(float[] x, float[] y) {
450 return x[0] * y[0] + x[1] * y[1] + x[2] * y[2];
451 }

Callers 15

P_ProjectSourceMethod · 0.95
aiMethod · 0.95
Drop_ItemMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95
thinkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected