Comments (4)
Hi. Thanks for your message. Indeed, this could be added.
I've spent so much time trying to factor out everything, and play with this powerful Swift pattern which is protocol-oriented programming. But sometimes, I missed a few details in the global view.
I am glad it helped you in different ways. Don't hesitate to support it on patreon, it if you wish. ;-)
from swiftaa.
I am currently moving the func makeHorizontalCoordinates(with geographicCoordinates: GeographicCoordinates) -> HorizontalCoordinates
function from the Sun
class to the CelestialBody
protocol.
The little change is that it now uses self.equatorialCoordinates
and not self.apparentEquatorialCoordinates
as it was in the Sun class.
Hence to be consistent, I kept the method in the Sun
class, with the existing implementation, but renaming it more correctly makeApparentHorizontalCoordinates(with geographicCoordinates: GeographicCoordinates) -> HorizontalCoordinates
Consequently: the Sun class has hence both methods: the standard one from the CelestialBody
protocol, and the "apparent" one as a specific implementation.
from swiftaa.
I'll wait for closing #100 and #101 before making a patch release.
from swiftaa.
Already done.
from swiftaa.
Related Issues (20)
- Moonrise appears to be nil on certain day, on certain place HOT 9
- Earth.riseTransitSetTimes broken for SwiftAA package? HOT 2
- Issue with Sunrise/set times HOT 3
- Bug in Moon rise/set/transit HOT 9
- How to determine the moon phase like 🌑🌒🌓🌔🌕🌖🌗🌘 ? HOT 2
- warning when linking into an iOS widget build HOT 3
- "Invalid Exclude" warnings in XCode 13.1 HOT 8
- calculation of 2023 spring equinox is off by over 1:30 HOT 2
- Adding via Swift Package Manager HOT 2
- No access to ApparentGeocentricLongitude for Pluto since 2.4.0 HOT 7
- Build Errors with 2.4.0 HOT 6
- RiseTransitSetTimes returns a setTime prior to rise time? HOT 2
- shiftedCoordinates & ProperMotion HOT 3
- Getting coordinates of stars HOT 3
- BUG calculating illuminated fraction and phase angle HOT 5
- Calculating the rise and set times for a star HOT 7
- Calculate daytime hours based on location HOT 7
- Rise/Set date difference by one day? HOT 2
- Rise / Transit / Set times for stars seem to be off by 1 hour HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftaa.