(float angle)
| 170 | |
| 171 | // Implementation roughly based on AffineTransform. |
| 172 | public void rotate(float angle) { |
| 173 | float s = sin(angle); |
| 174 | float c = cos(angle); |
| 175 | |
| 176 | float temp1 = m00; |
| 177 | float temp2 = m01; |
| 178 | m00 = c * temp1 + s * temp2; |
| 179 | m01 = -s * temp1 + c * temp2; |
| 180 | temp1 = m10; |
| 181 | temp2 = m11; |
| 182 | m10 = c * temp1 + s * temp2; |
| 183 | m11 = -s * temp1 + c * temp2; |
| 184 | } |
| 185 | |
| 186 | |
| 187 | /** |
no test coverage detected