MCPcopy
hub / github.com/processing/p5.js / pan

Method pan

src/webgl/p5.Camera.js:749–752  ·  view source on GitHub ↗

* Rotates the camera left and right. * * Panning rotates the camera without changing its position. The rotation * happens in the camera’s "local" space. * * The parameter, `angle`, is the angle the camera should rotate. Passing a * positive angle, as in `myCamera.pan(0.001)`, rotat

(amount)

Source from the content-addressed store, hash-verified

747 * }
748 */
749 pan(amount) {
750 const local = this._getLocalAxes();
751 this._rotateView(amount, local.y[0], local.y[1], local.y[2]);
752 }
753
754 /**
755 * Rotates the camera up and down.

Callers 4

p5.sound.min.jsFile · 0.80
p5.sound.jsFile · 0.80
drawFunction · 0.80
p5.Camera.jsFile · 0.80

Calls 2

_getLocalAxesMethod · 0.95
_rotateViewMethod · 0.95

Tested by

no test coverage detected