private static void mat4_util_load_rotate(float[] outMatrix,float eulerRadiansX,float eulerRadiansY,float eulerRadiansZ){
  float cos_rx=(float)Math.cos(eulerRadiansX);
  float cos_ry=(float)Math.cos(eulerRadiansY);
  float cos_rz=(float)Math.cos(eulerRadiansZ);
  float sin_rx=(float)Math.sin(eulerRadiansX);
  float sin_ry=(float)Math.sin(eulerRadiansY);
  float sin_rz=(float)Math.sin(eulerRadiansZ);
  outMatrix[0]=cos_rz * cos_ry;
  outMatrix[1]=sin_rz * cos_ry;
  outMatrix[2]=-sin_ry;
  outMatrix[3]=0.0f;
  outMatrix[4]=-sin_rz * cos_rx + cos_rz * sin_ry * sin_rx;
  outMatrix[5]=cos_rz * cos_rx + sin_rz * sin_ry * sin_rx;
  outMatrix[6]=cos_ry * sin_rx;
  outMatrix[7]=0.0f;
  outMatrix[8]=sin_rz * sin_rx + cos_rz * sin_ry * cos_rx;
  outMatrix[9]=-cos_rz * sin_rx + sin_rz * sin_ry * cos_rx;
  outMatrix[10]=cos_ry * cos_rx;
  outMatrix[11]=0.0f;
  outMatrix[12]=0.0f;
  outMatrix[13]=0.0f;
  outMatrix[14]=0.0f;
  outMatrix[15]=1.0f;
}

private static void mat4_util_load_rotate ( float [ ] outMatrix , float eulerRadiansX , float eulerRadiansY , float eulerRadiansZ ) { float cos_rx = ( float ) Math . cos ( eulerRadiansX ) ; float cos_ry = ( float ) Math . cos ( eulerRadiansY ) ; float cos_rz = ( float ) Math . cos ( eulerRadiansZ ) ; float sin_rx = ( float ) Math . sin ( eulerRadiansX ) ; float sin_ry = ( float ) Math . sin ( eulerRadiansY ) ; float sin_rz = ( float ) Math . sin ( eulerRadiansZ ) ; outMatrix [ 0 ] = cos_rz * cos_ry ; outMatrix [ 1 ] = sin_rz * cos_ry ; outMatrix [ 2 ] = - sin_ry ; outMatrix [ 3 ] = 0.0f ; outMatrix [ 4 ] = - sin_rz * cos_rx + cos_rz * sin_ry * sin_rx ; outMatrix [ 5 ] = cos_rz * cos_rx + sin_rz * sin_ry * sin_rx ; outMatrix [ 6 ] = cos_ry * sin_rx ; outMatrix [ 7 ] = 0.0f ; outMatrix [ 8 ] = sin_rz * sin_rx + cos_rz * sin_ry * cos_rx ; outMatrix [ 9 ] = - cos_rz * sin_rx + sin_rz * sin_ry * cos_rx ; outMatrix [ 10 ] = cos_ry * cos_rx ; outMatrix [ 11 ] = 0.0f ; outMatrix [ 12 ] = 0.0f ; outMatrix [ 13 ] = 0.0f ; outMatrix [ 14 ] = 0.0f ; outMatrix [ 15 ] = 1.0f ; }
\ fn mat4_util_load_rotate \ brief loads outmatrix with rotation matrix using eulerradiansx , eulerradiansy , eulerradiansz \ param outmatrix [ mat4 ] \ param eulerradiansx [ float ] \ param eulerradiansy [ float ] \ param eulerradiansz [ float ]
