Skip to content

greatCircle is not throwing the correct error for antipodal points #2883

@macrouch

Description

@macrouch

When attempting to calculate the greatCircle between two points, like this:

  const start = point([0, 90]);
  const end = point([0, -90]);

  greatCircle(start, end)

You should get a helpful error about being antipodal, but instead you get start.view is not a function

Its a simple change, and I have a PR ready to fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions