S2LatLng function ( ) { return new S2LatLng ( Math . max ( - S2 . M_PI_2 , Math . min ( S2 . M_PI_2 , lat ( ) . radians ( ) ) ) , Math . IEEEremainder ( lng ( ) . radians ( ) , 2 * S2 . M_PI ) ) ; }
returns a new s2latlng based on this instance for which #isvalid will be true . latitude is clipped to the range -90 , 90 longitude is normalized to be in the range -180 , 180 if the current point is valid then the returned point will have the same coordinates . 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 S1Angle latitude concode_elem_sep S2Point toPoint 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