google / s2-geometry-library-java

Automatically exported from code.google.com/p/s2-geometry-library-java
Apache License 2.0
533 stars 230 forks source link

S1Angle.fromEarthDistance #37

Closed Myjacklee closed 2 years ago

Myjacklee commented 2 years ago

Where is the method S1Angle.fromEarthDistance() , the S1Angle.fromEarthDistance(5000) is mentioned in class S2ClosestPointQuery , but I can't find it

jmr commented 2 years ago

S1Angle.fromEarthDistance is deprecated and was never released. The right way would be with S2Earth, but that hasn't been released yet either. You can use ... EARTH_RADIUS_KM = 6371.01; S1Angle.fromRadians(5 / EARTH_RADIUS_KM).