# Angle

Arithmetics
5.1 OC
int
int x1 X coordinate of the first point
int y1 Y coordinate of the first point
int x2 X coordinate of the second point
int y2 Y coordinate of the second point
int precision Multiplied with the angle. For a higher precision while working with integers (whole numbers) you can specify a higher precision value. A precision of 10 will produce values from 0 to 3600.
Returns the view angle from the first point to the second in degrees. 0° ist straight up. All coordinates global.
SetR
(Angle(GetCursor(0)->GetX(), GetCursor(0)->GetY(), GetCursor(1)->GetX(), GetCursor(1)->GetY() ));
The object rotates so it points from the clonk of player 1 to the clonk of player 2.
Cos
Sin
jwk
2002-04
Clonk-Karl
2004-09