Skip to content

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

@raybellis

Description

@raybellis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions