Table Of Contents

Previous topic

PointsObjectMixin

Next topic

Rectangle

This Page

phoenix_title Polygon

The Polygon class takes a list of 2-tuples, or a NX2 NumPy array of point coordinates. so that Points[N][0] is the x-coordinate of point N and Points[N][1] is the y-coordinate or Points[N,0] is the x-coordinate of point N and Points[N,1] is the y-coordinate for arrays.

The other parameters specify various properties of the Polygon, and should be self explanatory.


class_hierarchy Inheritance Diagram

Inheritance diagram for class Polygon

Inheritance diagram of Polygon


method_summary Methods Summary

__init__  

api Class API



class Polygon(PointsObjectMixin, LineAndFillMixin, DrawObject)

The Polygon class takes a list of 2-tuples, or a NX2 NumPy array of point coordinates. so that Points[N][0] is the x-coordinate of point N and Points[N][1] is the y-coordinate or Points[N,0] is the x-coordinate of point N and Points[N,1] is the y-coordinate for arrays.

The other parameters specify various properties of the Polygon, and should be self explanatory.


Methods



__init__(self, Points, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, FillColor = None, FillStyle = "Solid", InForeground = False)