Skip to content

Conversation

@benguild
Copy link

Noting the "circular" implementation and import conflict in #239 … removing the "earth" subject matter (and their own tests like "TestKmToAngle") from the S2 tests to instead be about general spheres, citing Earth as a planet in some cases but not using hard-coded values.

@benguild
Copy link
Author

@rsned This might be an acceptable solution for your previous comment, give me a shout and we can figure out what might be best. #239 (comment)

func TestContainsPointQueryContainingShapes(t *testing.T) {
const numVerticesPerLoop = 10
maxLoopRadius := kmToAngle(10)
maxLoopRadius := testRadiusMedium
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not really helpful to me as a reader of the code. I know what 10 km on the Earth is. I need to go look to find out what testRadiusMedium is.

What is the problem you're trying to solve?

numTargetEdges int
chooseTargetFromIndex bool
radiusKm s1.Angle
radius s1.Angle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks reasonable to fix since km is not an angle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants