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