reducedTheta x = 0 ifTrue: [^thetaY] ifFalse: [thetaY >= 360 ifFalse: [^thetaY] ifTrue: [| myY | myY := thetaY. [myY >= 360] whileTrue: [myY := myY - 360]. ^myY]]