Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name | draei() |
||
|---|---|---|---|
| Examples | ![]() verschieb(Feischterbreiti/2, Feischterhoechi/2); draei(PI/3.0); Viereck(-26, -26, 52, 52); |
||
| Description | Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to PI*2) or converted to radians with the Radiant() function. Obiekts are always rotated around their relative position to the origin and positive numbers rotate objects in a clockwise direction. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling draei(PI/2) and then draei(PI/2) is the same as draei(PI). If draei() is called within the wo_immerwider_gmacht_wird(), the transformation is reset when the loop begins again. Technically, draei() multiplies the current transformation matrix by a rotation matrix. This function can be further controlled by the pushMatrix() and popMatrix(). | ||
| Syntax | draei(angle); |
||
| Parameters |
|
||
| Usage | Web & Application | ||
| Related | rotateX() rotateY() rotateZ() verschieb() skalier() pushMatrix() popMatrix() |


