S2Point function ( ) { double loc0 = lat ( ) . radians ( ) ; double loc1 = lng ( ) . radians ( ) ; double loc2 = Math . cos ( loc0 ) ; return new S2Point ( Math . cos ( loc1 ) * loc2 , Math . sin ( loc1 ) * loc2 , Math . sin ( loc0 ) ) ; }
convert an s2latlng to the equivalent unit-length vector s2point . concode_field_sep S2LatLng CENTER concode_elem_sep double EARTH_RADIUS_METERS concode_elem_sep double latRadians concode_elem_sep double lngRadians concode_field_sep S2LatLng sub concode_elem_sep S2LatLng mul concode_elem_sep S2LatLng normalized concode_elem_sep S1Angle latitude concode_elem_sep boolean approxEquals concode_elem_sep boolean approxEquals concode_elem_sep int hashCode concode_elem_sep S2LatLng fromDegrees concode_elem_sep double latDegrees concode_elem_sep double lngDegrees concode_elem_sep S1Angle lat concode_elem_sep S1Angle longitude concode_elem_sep S1Angle getDistance concode_elem_sep double getDistance concode_elem_sep S2LatLng add concode_elem_sep S1Angle lng concode_elem_sep boolean isValid concode_elem_sep double getEarthDistance concode_elem_sep String toStringDegrees concode_elem_sep S2LatLng fromE5 concode_elem_sep S2LatLng fromE6 concode_elem_sep S2LatLng fromE7 concode_elem_sep boolean equals concode_elem_sep double latRadians concode_elem_sep String toString concode_elem_sep double lngRadians concode_elem_sep S2LatLng fromRadians