rotateX()
TransformDescription
Rotates around the x-axis. Use in P3D mode.
Syntax
void rotateX(float angle)
Parameters
| Name | Type | Description |
|---|---|---|
| angle | float | angle in radians |
Returns
voidRelated
Under the Hood
From Processing.h:
void rotateX(float angle);
template<typename A,typename=std::enable_if_t<std::is_arithmetic_v<A>>>
void rotateX(A a){ rotateX((float)a);
inline void PGraphics::rotateX(float angle) { if(PApplet::g_papplet) PApplet::g_papplet->rotateX(angle); }
Under the Hood
From Processing.cpp:
void PApplet::rotateX(float a){glRotatef(a*180.0f/PI,1,0,0);}