Open topic with navigation
<vizmat>.AngleDiff
Returns the difference between two angles
<vizmat>.AngleDiff( |
|
angle1 |
angle2 |
) |
|
angle1
The first angle, in degrees
angle2
The second angle, in degrees
Remarks
This command will return the difference in degrees between two angles.
Return Value
The difference between the angles.
If the value is greater than zero then the difference is clockwise.
If the value is less than zero then the difference is Counter-Clockwise
Example
import vizmat
#This will print out 10
print(vizmat.AngleDiff(20,30))
#This will print out -10
print(vizmat.AngleDiff(30,20))