rotateZ()
TransformDescription
Rotates around the z-axis. Use in P3D mode.
Syntax
void rotateZ(float angle)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | angle in radians |
Returns
voidRelated
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);}