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

Method Normalize

s2/loop.go:876–880  ·  view source on GitHub ↗

Normalize inverts the loop if necessary so that the area enclosed by the loop is at most 2*pi.

()

Source from the content-addressed store, hash-verified

874// Normalize inverts the loop if necessary so that the area enclosed by the loop
875// is at most 2*pi.
876func (l *Loop) Normalize() {
877 if !l.IsNormalized() {
878 l.Invert()
879 }
880}
881
882// Invert reverses the order of the loop vertices, effectively complementing the
883// region represented by the loop. For example, the loop ABCD (with edges

Callers 15

perturbAtDistanceFunction · 0.45
generateCapEdgesFunction · 0.45
VertexMethod · 0.45
EdgeMethod · 0.45
CenterMethod · 0.45
CapBoundMethod · 0.45
singlePointLoopFunction · 0.45
singleEdgeLoopFunction · 0.45

Calls 2

IsNormalizedMethod · 0.95
InvertMethod · 0.95