I have three vectors V1, V2, and V3. Their origin points are on the axes\' origin. How could I determine whether V3 is between V1 and V2 when I move around counterclockwise
Somewhat easier method for most other programing languages.
If V1, V2 and V3 are given vectors, and we need to decide weather V3 is between V1 and V2, and Ri = atan2(Vi) (which returns an angle in radians from -pi to pi):
Clockwise:
R1 -= R3;
R2 -= R3;
if (R1 < 0) R1 += 2 * PI;
if (R2 <= 0) R2 += 2 * PI;
return (r1 < r2);
For counterclockwise, just swap R1 and R2.