kozbot / kecb

Python program to generate industrial electrical symbol library.
MIT License
7 stars 3 forks source link

Draw Rectangle #7

Closed kozbot closed 7 years ago

kozbot commented 7 years ago

Need a helper method to draw polyline rectangle using two points. Raise valueerror if p1.x == p2.x or p1.y == p2.y Make it irrelevant what two points are supplied, they should just have to be opposing corners and calculate the rest.