I am writing a program that needs to determine the angle between two line segments and whether the angle is clockwise or counterclockwise from the main segment.
How do I determine the direction of the angle from the main segment?
All the coordinates are positive numbers. The segments are of variant sizes.
The solution needs to be an equation since I will have to insert it in some code.