Fix for issue #30

Updated approach to calculateAngle() in Angle2d.java and Angle3d.java