A Container is a 2D closed shape which contains a set of points.
| 41 | |
| 42 | // A Container is a 2D closed shape which contains a set of points. |
| 43 | type Container interface { |
| 44 | // Contains reports whether the container contains the given point. |
| 45 | Contains(p Point) bool |
| 46 | } |
| 47 | |
| 48 | // Point describes a coordinate in a 2 dimensional euclidean space |
| 49 | // it can also be thought of as a 2 dimensional vector from the origin |
no outgoing calls
no test coverage detected