Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lekoowo/isconvexpolygon

A module determines if a polygon is convex.
https://github.com/lekoowo/isconvexpolygon

Last synced: 25 days ago
JSON representation

A module determines if a polygon is convex.

Awesome Lists containing this project

README

        

# isConvexPolygon

## Description

This is a module determines if a polygon is convex.

## Usage

```
from isConvexPolygon import *

# point [x,y]
# points = [point1, point2 ...]
# line = [a,b,c] (ax+by+c=0)
# nums = [num1, num2 ...]

isAtSameSide(points, line) # if points are at the same side of the line
isSameSign(nums) # if nums are same-signed
line(point1, point2) # returns a line which determined by the 2 points

```