Package org.apache.commons.numbers.angle
Class Angle.Deg
- java.lang.Object
-
- org.apache.commons.numbers.angle.Angle
-
- org.apache.commons.numbers.angle.Angle.Deg
-
- All Implemented Interfaces:
DoubleSupplier
- Enclosing class:
- Angle
public static final class Angle.Deg extends Angle
Unit: degrees.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.numbers.angle.Angle
Angle.Deg, Angle.Rad, Angle.Turn
-
-
Field Summary
Fields Modifier and Type Field Description static DoubleUnaryOperatorWITHIN_0_AND_360Normalizing operator (result will be within the[0, 360[interval).static Angle.DegZEROZero.-
Fields inherited from class org.apache.commons.numbers.angle.Angle
PI_OVER_TWO, TWO_PI
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DoubleUnaryOperatornormalizer(double lo)Creates an operator for normalizing/reducing an angle.static Angle.Degof(double angle)Create an instance.Angle.DegtoDeg()Convert to aAngle.Deg.Angle.RadtoRad()Convert to aAngle.Rad.Angle.TurntoTurn()Convert to aAngle.Turn.-
Methods inherited from class org.apache.commons.numbers.angle.Angle
equals, getAsDouble, hashCode
-
-
-
-
Field Detail
-
WITHIN_0_AND_360
public static final DoubleUnaryOperator WITHIN_0_AND_360
Normalizing operator (result will be within the[0, 360[interval).
-
-
Method Detail
-
of
public static Angle.Deg of(double angle)
Create an instance.- Parameters:
angle- (in degrees).- Returns:
- a new instance.
-
toTurn
public Angle.Turn toTurn()
Convert to aAngle.Turn.
-
normalizer
public static DoubleUnaryOperator normalizer(double lo)
Creates an operator for normalizing/reducing an angle. The output will be within the[c, c + 360[interval.- Parameters:
lo- Lower bound of the normalized interval.- Returns:
- the normalization operator.
-
-