Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(1)  |  Derive(1)  |  Import(2)
Class for 2D Polygons.

A Polgon behaves like a list of points, but the last point in the list is assumed to be connected back to the first point.

src/p/y/Py2D-HEAD/py2d/FOV.py   Py2D(Download)
		visible_points += boundary_intersection_points
 
		poly = py2d.Math.Polygon()
		poly.add_points(visible_points)
		poly.sort_around(eye)

src/p/y/Py2D-HEAD/py2d/SVG.py   Py2D(Download)
import warnings
from collections import deque
from py2d.Math import Polygon, Vector, Transform
from py2d.Bezier import flatten_cubic_bezier, flatten_quadratic_bezier
 

src/p/y/py2d-0.1/py2d/SVG.py   py2d(Download)
import warnings
from collections import deque
from py2d.Math import Polygon, Vector, Transform
from py2d.Bezier import flatten_cubic_bezier, flatten_quadratic_bezier
 

src/p/y/Py2D-HEAD/py2d/Navigation.py   Py2D(Download)
class NavPolygon(py2d.Math.Polygon):
	"""Polygon class with added navigation data"""
	def __init__(self, polygon):
		py2d.Math.Polygon.__init__(self)