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

Struct Cap

s2/cap.go:61–64  ·  view source on GitHub ↗

Cap represents a disc-shaped region defined by a center and radius. Technically this shape is called a "spherical cap" (rather than disc) because it is not planar; the cap represents a portion of the sphere that has been cut off by a plane. The boundary of the cap is the circle defined by the inters

Source from the content-addressed store, hash-verified

59//
60// The zero value of Cap is an invalid cap. Use EmptyCap to get a valid empty cap.
61type Cap struct {
62 center Point
63 radius s1.ChordAngle
64}
65
66// CapFromPoint constructs a cap containing a single point.
67func CapFromPoint(p Point) Cap {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected