Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected .deg() result from sexagesimal.HourAngle and .RA #34

Open
raybellis opened this issue Jun 28, 2023 · 0 comments
Open

Unexpected .deg() result from sexagesimal.HourAngle and .RA #34

raybellis opened this issue Jun 28, 2023 · 0 comments

Comments

@raybellis
Copy link

Is it intentional that the HourAngle class and its derived RA class return .hour() when .deg() is called?

I would have expected .deg() to convert the results into true decimal degrees, such that given:

    const sx = require('astronomia/sexagesimal');
    const ra = Math.PI / 2;
    const o = new sx.RA(ra)
    console.log(o.hour(), o.deg())

it should output 6 90 and not 6 6.

@raybellis raybellis changed the title Confused over sexagesimal.HourAngle sexagesimal.RA Unexpected .deg() result from sexagesimal.HourAngle and .RA Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant