MCPcopy Index your code
hub / github.com/benfry/processing4 / rotate

Method rotate

core/src/processing/core/PMatrix2D.java:172–184  ·  view source on GitHub ↗
(float angle)

Source from the content-addressed store, hash-verified

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 /**

Callers 2

parseSingleTransformMethod · 0.95
rotateZMethod · 0.95

Calls 2

sinMethod · 0.95
cosMethod · 0.95

Tested by

no test coverage detected