Tabnine Logo
GeoUtils.sloppySin
Code IndexAdd Tabnine to your IDE (free)

How to use
sloppySin
method
in
org.apache.lucene.geo.GeoUtils

Best Java code snippets using org.apache.lucene.geo.GeoUtils.sloppySin (Showing top 2 results out of 315)

origin: org.apache.lucene/lucene-core

double deltaLon = asin(sloppySin(radDistance) / cos(radLat));
minLon = radLon - deltaLon;
if (minLon < MIN_LON_RADIANS) {
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene

double deltaLon = asin(sloppySin(radDistance) / cos(radLat));
minLon = radLon - deltaLon;
if (minLon < MIN_LON_RADIANS) {
org.apache.lucene.geoGeoUtilssloppySin

Javadoc

Returns the trigonometric sine of an angle converted as a cos operation.

Note that this is not quite right... e.g. sin(0) != 0

Special cases:

  • If the argument is NaN or an infinity, then the result is NaN.

Popular methods of GeoUtils

  • checkLatitude
    validates latitude value is within standard +/-90 coordinate bounds
  • checkLongitude
    validates longitude value is within standard +/-180 coordinate bounds
  • orient
    Returns a positive value if points a, b, and c are arranged in counter-clockwise order, negative val
  • distanceQuerySortKey
    binary search to find the exact sortKey needed to match the specified radius any sort key lte this i
  • lineCrossesLine
    uses orient method to compute whether two line segments cross
  • relate
    Compute the relation between the provided box and distance query. This only works for boxes that do
  • within90LonDegrees
    Return whether all points of [minLon,maxLon] are within 90 degrees of lon.

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Path (java.nio.file)
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now