Class Angle


  • public class Angle
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Angle()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double parse​(java.lang.String text)
      Parses a text representation of a degree angle in various formats.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Angle

        public Angle()
    • Method Detail

      • parse

        public static double parse​(java.lang.String text)
                            throws java.lang.NumberFormatException
        Parses a text representation of a degree angle in various formats. Formats include DMS and DD in the forms supported by AngleFormat, as in the following examples:
         123.12
         -123.12
         123.12W
        
         123d44m44.555s
         123d44'44.555"
         123d44mN
         
        Parameters:
        text -
        Returns:
        the value of the angle, in degrees
        Throws:
        java.lang.NumberFormatException