Class S1Angle

    • Constructor Detail

      • S1Angle

        public S1Angle()
        The default constructor yields a zero angle.
      • S1Angle

        public S1Angle​(S2Point x,
                       S2Point y)
        Return the angle between two points, which is also equal to the distance between these points on the unit sphere. The points do not need to be normalized.
    • Method Detail

      • radians

        public double radians()
      • degrees

        public double degrees()
      • e5

        public long e5()
      • e6

        public long e6()
      • e7

        public long e7()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • lessThan

        public boolean lessThan​(S1Angle that)
      • greaterThan

        public boolean greaterThan​(S1Angle that)
      • lessOrEquals

        public boolean lessOrEquals​(S1Angle that)
      • greaterOrEquals

        public boolean greaterOrEquals​(S1Angle that)
      • radians

        public static S1Angle radians​(double radians)
      • degrees

        public static S1Angle degrees​(double degrees)
      • e5

        public static S1Angle e5​(long e5)
      • e6

        public static S1Angle e6​(long e6)
      • e7

        public static S1Angle e7​(long e7)
      • toString

        public String toString()
        Writes the angle in degrees with a "d" suffix, e.g. "17.3745d". By default 6 digits are printed; this can be changed using setprecision(). Up to 17 digits are required to distinguish one angle from another.
        Overrides:
        toString in class Object