Is there any function to rotate one point around another point by angle?

My entire game is based around angles in 2d and 3d space. Let me know if anything else comes up.