Varkon MBS Programmers manual
Returns the angle (0-360) between the positive X-axis and a line from X=Y=0 to a given position.
a:=angle(x, y); float a; float x; float y;
x | - The x coordinate. |
y | - The y coordinate. |
None.
A FLOAT value equal to the corresponding angle in degrees.
a:=angle(1,0); ! Equal to a:=0.0; a:=angle(1,1); ! Equal to a:=45.0; a:=angle(0,1); ! Equal to a:=90.0; a:=angle(1,-1); ! Equalto a:=-45.0; a:=angle(-1,1); ! Equal to a:=135.0;
angle(x,y) is basically the same thing as arctan(y/x) but angle() deals with angles larger than or equal to 90 degrees.
Varkon 1.19D svn # 120M