Add adds the given edge to the shape.
(a, b Point)
| 39 | |
| 40 | // Add adds the given edge to the shape. |
| 41 | func (e *edgeVectorShape) Add(a, b Point) { |
| 42 | e.edges = append(e.edges, Edge{a, b}) |
| 43 | } |
| 44 | func (e *edgeVectorShape) NumEdges() int { return len(e.edges) } |
| 45 | func (e *edgeVectorShape) Edge(id int) Edge { return e.edges[id] } |
| 46 | func (e *edgeVectorShape) ReferencePoint() ReferencePoint { return OriginReferencePoint(false) } |
no outgoing calls
no test coverage detected