1.) Make a Java program that when given a CurrentAngle and TargetAngle will tell you whether Clockwise or Counter Clockwise is the shortest direction to turn to get there (if the same then just go Clockwise). Try do this is in as few lines of code as you can!
2.) Convert that Java code to a C2 plugin where you supply the parameters directly as an expression (eg: not as an action or event).
First Thank you so much for giving me these challenges!
The first one is kinda easy because it requires math knowledge and it's basics of programming.
The second one I'll try because I made behavior before and this will be my first time I program a plugin for C2.