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

Function CapFromCenterAngle

s2/cap.go:72–74  ·  view source on GitHub ↗

CapFromCenterAngle constructs a cap with the given center and angle.

(center Point, angle s1.Angle)

Source from the content-addressed store, hash-verified

70
71// CapFromCenterAngle constructs a cap with the given center and angle.
72func CapFromCenterAngle(center Point, angle s1.Angle) Cap {
73 return CapFromCenterChordAngle(center, s1.ChordAngleFromAngle(angle))
74}
75
76// CapFromCenterChordAngle constructs a cap where the angle is expressed as an
77// s1.ChordAngle. This constructor is more efficient than using an s1.Angle.

Callers 15

capCoveringsFunction · 0.92
generateCapEdgesFunction · 0.85
cap_test.goFile · 0.85
TestCapContainsFunction · 0.85
TestCapExpandedFunction · 0.85
TestCapRectBoundsFunction · 0.85
TestCapAddPointFunction · 0.85
TestCapAddCapFunction · 0.85
TestCapContainsCellFunction · 0.85

Calls 2

ChordAngleFromAngleFunction · 0.92
CapFromCenterChordAngleFunction · 0.85

Tested by 15

capCoveringsFunction · 0.74
generateCapEdgesFunction · 0.68
TestCapContainsFunction · 0.68
TestCapExpandedFunction · 0.68
TestCapRectBoundsFunction · 0.68
TestCapAddPointFunction · 0.68
TestCapAddCapFunction · 0.68
TestCapContainsCellFunction · 0.68
TestCapIntersectsCellFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…