Derek McQuay
b5a9726d2d
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()
6 lines
50 B
Go
6 lines
50 B
Go
package rect
|
|
|
|
type Point struct {
|
|
X, Y float64
|
|
}
|