Class Angle


  • public final class Angle
    extends NativeBase

    Represents an angle independent of the unit of measurement.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Angle fromDegrees​(double angle)
      Creates a new angle object based on the supplied angle value in degrees.
      static Angle fromRadians​(double angle)
      Creates a new angle object based on the supplied angle value in radians.
      double getDegrees()
      Gets the value of this angle in degrees.
      double getRadians()
      Gets the value of this angle in radians.
      • Methods inherited from class java.lang.Object

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

      • fromDegrees

        @NonNull
        public static Angle fromDegrees​(double angle)

        Creates a new angle object based on the supplied angle value in degrees.

        Parameters:
        angle -

        Angle value in degrees.

        Returns:

        The angle as specified by input in degrees.

      • fromRadians

        @NonNull
        public static Angle fromRadians​(double angle)

        Creates a new angle object based on the supplied angle value in radians.

        Parameters:
        angle -

        Angle value in radians.

        Returns:

        The angle as specified by input in radians.

      • getDegrees

        public double getDegrees()

        Gets the value of this angle in degrees.

        Returns:

        The value of this angle in degrees.

      • getRadians

        public double getRadians()

        Gets the value of this angle in radians.

        Returns:

        The value of this angle in radians.