Class Angle
Package com.here.sdk.core
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnglefromDegrees(double angle)Creates a new angle object based on the supplied angle value in degrees.static AnglefromRadians(double angle)Creates a new angle object based on the supplied angle value in radians.doublegetDegrees()Gets the value of this angle in degrees.doublegetRadians()Gets the value of this angle in radians.
-
-
-
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.
-
-