Rotating a vector using Matrix.rotateM
问题 I have made a simple class called Vector3. It's a 3 dimensional vector with some basic math implementions. Now i want to be able to rotate this single vector, but i get an exception. I have this: private static final float[] matrix = new float[16]; private static final float[] inVec = new float[4]; private static final float[] outVec = new float[4]; public Vector3 rotate(float angle, float axisX, float axisY, float axisZ) { inVec[0] = x; inVec[1] = y; inVec[2] = z; inVec[3] = 1; Matrix