Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lekoowo/isconvexpolygon
- Owner: lekoOwO
- License: mit
- Created: 2017-09-03T04:10:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T14:02:34.000Z (over 7 years ago)
- Last Synced: 2024-10-28T09:06:57.465Z (2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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```