Angles problem

So I have two vectors ptA & ptB around the origin (0,0) . I need to find the smallest angle between them (clockwise or anticlockwise)but am struggling with the math. Thanks for any replies

@Coder - try this

Angle=ptA:angleBetween(ptB)

The answer is in radians, you can convert to degrees with math.deg

Is it really that simple, all this time? ~X(

Thanks

@Coder, look in the built in docs, there are lots of other vector functions

@Coder it really is, another way to get the angle of a vector is to use math.atan2(point.y,point.x) and it is also in radians.

Thanks everyone :smiley: