speed.x = -1f * ((rotMatrix.m00 * speed.x) + (rotMatrix.m10 * speed.y) + (rotMatrix.m20 * speed.z)); speed.y = (rotMatrix.m01 * speed.x) + (rotMatrix.m11 * speed.y) + (rotMatrix.m21 * speed.z); speed.z = -1f * ((rotMatrix.m02 * speed.x) + (rotMatrix.m12 * speed.y) + (rotMatrix.m22 * speed.z));
float x = speed.x, y = speed.y, z = speed.z;  speed.x = -1*((rotMatrix.m00 * x) + (rotMatrix.m10 * y) + (rotMatrix.m20 * z));  speed.y =     (rotMatrix.m01 * x) + (rotMatrix.m11 * y) + (rotMatrix.m21 * z);  speed.z = -1*((rotMatrix.m02 * x) + (rotMatrix.m12 * y) + (rotMatrix.m22 * z));
  private void rotateVectorSpeed(Vector3f speed) {    speed.x = -1f *        ((rotMatrix.m00 * speed.x) + (rotMatrix.m10 * speed.y) +         (rotMatrix.m20 * speed.z));    speed.y = (rotMatrix.m01 * speed.x) + (rotMatrix.m11 * speed.y) +        (rotMatrix.m21 * speed.z);    speed.z = -1f *        ((rotMatrix.m02 * speed.x) + (rotMatrix.m12 * speed.y) +         (rotMatrix.m22 * speed.z));  }