Class GeodesicMask

java.lang.Object
net.sf.geographiclib.GeodesicMask

public class GeodesicMask extends Object
Bit masks for what geodesic calculations to do.

These masks do double duty. They specify (via the outmask parameter) which results to return in the GeodesicData object returned by the general routines Geodesic.Direct and Geodesic.Inverse routines. They also signify (via the caps parameter) to the GeodesicLine.GeodesicLine constructor and to Geodesic.Line what capabilities should be included in the GeodesicLine object.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    All capabilities, calculate everything.
    static final int
    Calculate area S12.
    static final int
    Calculate azimuths azi1 and azi2.
    static final int
    Calculate distance s12.
    static final int
    Allow distance s12 to be used as input in the direct geodesic problem.
    static final int
    Calculate geodesic scales M12 and M21.
    static final int
    Calculate latitude lat2.
    static final int
    Unroll lon2.
    static final int
    Calculate longitude lon2.
    static final int
    No capabilities, no output.
    static final int
    Calculate reduced length m12.
    static final int
    All of the above, the "standard" output and capabilities.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NONE

      public static final int NONE
      No capabilities, no output.
      See Also:
    • LATITUDE

      public static final int LATITUDE
      Calculate latitude lat2. (It's not necessary to include this as a capability to GeodesicLine because this is included by default.)
      See Also:
    • LONGITUDE

      public static final int LONGITUDE
      Calculate longitude lon2.
      See Also:
    • AZIMUTH

      public static final int AZIMUTH
      Calculate azimuths azi1 and azi2. (It's not necessary to include this as a capability to GeodesicLine because this is included by default.)
      See Also:
    • DISTANCE

      public static final int DISTANCE
      Calculate distance s12.
      See Also:
    • STANDARD

      public static final int STANDARD
      All of the above, the "standard" output and capabilities.
      See Also:
    • DISTANCE_IN

      public static final int DISTANCE_IN
      Allow distance s12 to be used as input in the direct geodesic problem.
      See Also:
    • REDUCEDLENGTH

      public static final int REDUCEDLENGTH
      Calculate reduced length m12.
      See Also:
    • GEODESICSCALE

      public static final int GEODESICSCALE
      Calculate geodesic scales M12 and M21.
      See Also:
    • AREA

      public static final int AREA
      Calculate area S12.
      See Also:
    • ALL

      public static final int ALL
      All capabilities, calculate everything. (LONG_UNROLL is not included in this mask.)
      See Also:
    • LONG_UNROLL

      public static final int LONG_UNROLL
      Unroll lon2.
      See Also:
  • Constructor Details

    • GeodesicMask

      public GeodesicMask()