Skip to content

throw error code use && #18

@comxtohr

Description

@comxtohr

throw error code here uses &&
if (currentP[0] !== contour[contourLen][0] && currentP[1] !== contour[contourLen][1])
so the code throw error only if both lat not equal and lon not equal?

here is code reference:
https://github.com/rowanwins/point-in-polygon-hao/blob/9cee0e8736917d8a8206ece35267fcd4206b9a39/src/index.js#LL23C9-L26C10

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