methods for angle calculations and entity rotations