I am trying to rotate the below object against an axis so that it looks like in the second image
In the second image I rotated the object manually, however I know this isn't ideal as it may not be perfectly aligned. Is there a better way to do this, using a trick/tool to ensure it lines up perfectly?
Many thanks

