Your question is a bit too general for us to give you a specific answer. Is there a specific problem you need help with? In the meantime, check out this Wyzant resource for information on how to do geometric transformations including rotations.
https://www.wyzant.com/resources/files/629425/geometric_transformations_revised_11_2017