Skip to content

Commit 72a2f11

Browse files
committed
Renaming method for clarity
1 parent 09c1534 commit 72a2f11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

s2/edge_query_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,10 @@ func generateEdgeQueryWithTargets(opts *edgeQueryBenchmarkOptions, query *EdgeQu
455455
}
456456

457457
for i := 0; i < numTargets; i++ {
458-
targetDist := fractionToRadius(opts.centerSeparationFraction, opts.radius)
458+
targetDist := fractionToAngle(opts.centerSeparationFraction, opts.radius)
459459
targetCap := CapFromCenterAngle(
460460
sampleBoundaryFromCap(CapFromCenterAngle(indexCap.Center(), targetDist)),
461-
fractionToRadius(opts.targetRadiusFraction, opts.radius),
461+
fractionToAngle(opts.targetRadiusFraction, opts.radius),
462462
)
463463

464464
switch opts.targetType {
@@ -539,7 +539,7 @@ func sampleCellFromIndex(index *ShapeIndex) CellID {
539539
return iter.CellID()
540540
}
541541

542-
func fractionToRadius(fraction float64, radius unit.Length) s1.Angle {
542+
func fractionToAngle(fraction float64, radius unit.Length) s1.Angle {
543543
if fraction < 0 {
544544
fraction = -randomFloat64() * fraction
545545
}

0 commit comments

Comments
 (0)