Skip to content

Resolution issue #16

@mta102

Description

@mta102

xmin, xmax, ymin, ymax = 0, 0.00002, 0, 0.00002
x0, y0, x1, y1 = 0.00005, 0.00005, 0, 1

#define any n-sided polygon
p = np.array([[xmin, ymin],
[xmax, ymin],
[xmax, ymax],
[xmin, ymax],
[xmin, ymin]])

#define some coords
coords = np.array([[x0, y0],
[x1, y1]])

#get boolean mask for points if in or on polygon perimeter
isin, ison = inpoly2(coords, p)
isin.sum()

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