public void rotate(float angle) { float s = sin(angle); float c = cos(angle); float temp1 = m00; float temp2 = m01; m00 = c * temp1 + s * temp2; m01 = -s * temp1 + c * temp2; temp1 = m10; temp2 = m11; m10 = c * temp1 + s * temp2; m11 = -s * temp1 + c * temp2; }
public void rotate(float angle) { float s = sin(angle); float c = cos(angle); float temp1 = m00; float temp2 = m01; m00 = c * temp1 + s * temp2; m01 = -s * temp1 + c * temp2; temp1 = m10; temp2 = m11; m10 = c * temp1 + s * temp2; m11 = -s * temp1 + c * temp2; }