MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / multiplyMat4xVec4

Method multiplyMat4xVec4

src/main/java/net/optifine/shaders/SMath.java:19–25  ·  view source on GitHub ↗
(float[] vecOut, float[] matA, float[] vecB)

Source from the content-addressed store, hash-verified

17 }
18
19 static void multiplyMat4xVec4(float[] vecOut, float[] matA, float[] vecB)
20 {
21 vecOut[0] = matA[0] * vecB[0] + matA[4] * vecB[1] + matA[8] * vecB[2] + matA[12] * vecB[3];
22 vecOut[1] = matA[1] * vecB[0] + matA[5] * vecB[1] + matA[9] * vecB[2] + matA[13] * vecB[3];
23 vecOut[2] = matA[2] * vecB[0] + matA[6] * vecB[1] + matA[10] * vecB[2] + matA[14] * vecB[3];
24 vecOut[3] = matA[3] * vecB[0] + matA[7] * vecB[1] + matA[11] * vecB[2] + matA[15] * vecB[3];
25 }
26
27 static void invertMat4(float[] matOut, float[] m)
28 {

Callers 2

postCelestialRotateMethod · 0.95
setUpPositionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected