Angle (API Reference)
Package com.here.sdk.core
Class Angle
java.lang.Object
com.here.NativeBase
com.here.sdk.core.Angle
Represents an angle independent of the unit of measurement.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.doubleGets the value of this angle in degrees.doubleGets the value of this angle in radians.
-
Method Details
-
fromDegrees
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
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.
-