Class Angle

java.lang.Object
com.here.NativeBase
com.here.sdk.core.Angle

public final class Angle extends NativeBase

Represents an angle independent of the unit of measurement.

  • Method Details

    • 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.