created rectangle struct and IsRect()

defined what a rectangle is and also implemented IsRect(), which returns
a bool whether the coordinates given make a rectangle or not.  Tests
were written for IsRect()
This commit is contained in:
dm
2016-08-26 09:08:30 -07:00
parent 56f8910a4e
commit b5a9726d2d
4 changed files with 89 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
package rect
type Point struct {
X, Y float64
}