rhannequin / astronoby

Ruby library based on astronomy and astrometry books
https://dev.to/rhannequin/series/17782
MIT License
59 stars 2 forks source link

Add `Angle#-@` #55

Closed rhannequin closed 7 months ago

rhannequin commented 7 months ago

This enables the opposite form of an angle.

angle = Astronoby::Angle.from_degrees(90)
negative_angle = -angle

negative_angle == Astronoby::Angle.from_degrees(-90)
# => true