bm256 Angle, Direction

Calculations


 

bm326 right (0 pi, that is 0 degrees)

bm327 right up (1/4 pi, that is 45 degrees)

bm328 up (1/2 pi, that is 90 degrees)

bm329 left up (3/4 pi, that is 135 degrees)

bm330 left (1 pi, that is 180 degrees)

bm331 left down (1 1/4 pi, that is 225 degrees)

bm332 down (1 1/2 pi, that is 270 degrees)

bm333 right down (1 3/4 pi, that is 315 degrees)

 

The angle elements are numeric constants representing the angle (direction) expressed in radian (the perigon, 360 degrees is 2*pi, i.e. approximately 6.28). The angle elements can be used e.g. as a goniometric function parameter or a parameter for setting the sprite direction (e.g. of Peter or Lucy).