MCPcopy
hub / github.com/golang/geo / Add

Method Add

s2/edge_vector_shape_test.go:41–43  ·  view source on GitHub ↗

Add adds the given edge to the shape.

(a, b Point)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected