{"body":"Physics::Measure has this \n\nhttps://raku.land/zef:librasteve/Physics::Measure#angles\n\n#Angles use degrees/minutes/seconds or decimal radians\n    my $θ1 = ^<45°30′30″>;      #45°30′30″ (using <> to deconfuse quotation marks)\n    my $θ2 = ^<2.141 radians>;  #'2.141 radian'\n#NB. The unit name 'rad' is reserved for the unit of radioactive Dose\n\n# Trigonometric functions sin, cos and tan (and arc-x) handle Angles\n    my $sine = sin( $θ1 );      #0.7133523847299412\n    my $arcsin = asin( $sine, units => '°' ); #45°30′30″\n#NB. Provide the units => '°' tag to tell asin you want degrees back\n\nit uses Physics::Unit which has this…\n\nAngle:\n  - {names: [°, degree, deg, º],         defn: 'pi radians / 180'}\n  - {names: [ᵍ, gon, grad],              defn: 'pi radians / 200'}\n\nand\n\n- Angle:       [radian, rad]   (ie the default is rad)\n\nThere is also Physics::Navigation… that adds on lat/long and bearing (ie points of compass and modulo math)\n","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/alPTC0t6","modified":1768673335,"id":"alPTC0t6","size":969,"lines":25,"own_paste":false,"theme":"","date":1768673335}