Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Weird global config _cartographicRadians and doc for Ellipsoid.cartesianToCartographic is not clear #18

@zengfenfei

Description

@zengfenfei

I try to use Ellipsoid.cartesianToCartographic, and refer to the API reference, but it does not tell me the order of cartographic array and wether it's degree or radians:

企业微信截图_946a6c31-db4a-4bb3-bac5-f4cbc05b6c79

Then I find the another example, which tell me the order of the cartographic parameter and the unit is radian:

image

But when I run the code, I realize the cartographic unit is not radian by default, it's controlled by a global config _cartographicRadians which has a weird name that starts with an underscore. I don't understand the ideas behind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions