csep.core.regions.Polygon

class csep.core.regions.Polygon(points)[source]

Represents polygons defined through a collection of vertices.

This polygon is assumed to be 2d, but could contain an arbitrary number of vertices. The path is treated as not being closed.

__init__(points)[source]

Methods

__init__(points)

centroid()

return the centroid of the polygon.

contains(points)

Returns a bool array which is True if the path contains the corresponding point.

from_great_circle_radius(centroid, radius[, ...])

Generates a polygon object from a given radius and centroid location.

get_xcoords()

get_ycoords()