rotateZ()

Transform

Description

Rotates around the z-axis. Use in P3D mode.

Syntax

void rotateZ(float angle)

Parameters

NameTypeDescription
anglefloatangle in radians

Returns

void

Related

Under the Hood

From Processing.h:

void rotateZ(float angle); template<typename A,typename=std::enable_if_t<std::is_arithmetic_v<A>>> void rotateZ(A a){ rotateZ((float)a); inline void PGraphics::rotateZ(float angle) { if(PApplet::g_papplet) PApplet::g_papplet->rotateZ(angle); }

Under the Hood

From Processing.cpp:

void PApplet::rotateZ(float a){glRotatef(a*180.0f/PI,0,0,1);}