MCPcopy Index your code
hub / github.com/processing/processing / rotate

Method rotate

core/src/processing/core/PShape.java:3182–3185  ·  view source on GitHub ↗

( begin auto-generated from PShape_rotate.xml ) Rotates a shape the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to TWO_PI) or converted to radians with the radians() method. Shapes are always rotated around the upper-left

(float angle)

Source from the content-addressed store, hash-verified

3180 * @see PShape#resetMatrix()
3181 */
3182 public void rotate(float angle) {
3183 checkMatrix(2); // at least 2...
3184 matrix.rotate(angle);
3185 }
3186
3187/**
3188 * @nowebref

Callers 3

rotateXMethod · 0.95
rotateYMethod · 0.95
rotateZMethod · 0.95

Calls 4

checkMatrixMethod · 0.95
sqrtMethod · 0.95
rotateMethod · 0.65
absMethod · 0.45

Tested by

no test coverage detected