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

Function OriginReferencePoint

s2/shape.go:136–138  ·  view source on GitHub ↗

OriginReferencePoint returns a ReferencePoint with the given value for contained and the origin point. It should be used when all points or no points are contained.

(contained bool)

Source from the content-addressed store, hash-verified

134// contained and the origin point. It should be used when all points or no
135// points are contained.
136func OriginReferencePoint(contained bool) ReferencePoint {
137 return ReferencePoint{Point: OriginPoint(), Contained: contained}
138}
139
140// typeTag is a 32-bit tag that can be used to identify the type of an encoded
141// Shape. All encodable types have a non-zero type tag. The tag associated with

Callers 7

ReferencePointMethod · 0.85
ReferencePointMethod · 0.85
ReferencePointMethod · 0.85
referencePointForShapeFunction · 0.85
ReferencePointMethod · 0.85
ReferencePointMethod · 0.85
ReferencePointMethod · 0.85

Calls 1

OriginPointFunction · 0.85

Tested by 1

ReferencePointMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…