Right-hand rule
You can do this in reverse by starting your thumb in the direction of the vector and see how your fingers curl to see the direction of rotation. If you point your thumb in the direction of current in a wire, the magnetic field that comes up around it is in the direction of your curling fingers.