Class Angle.Turn
java.lang.Object
org.apache.commons.numbers.angle.Angle
org.apache.commons.numbers.angle.Angle.Turn
- All Implemented Interfaces:
DoubleSupplier
- Enclosing class:
Angle
-
Nested Class Summary
Nested classes/interfaces inherited from class Angle
Angle.Deg, Angle.Rad, Angle.Turn -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DoubleUnaryOperatorNormalizing operator (result will be within the[0, 1[interval).static final Angle.TurnZero.Fields inherited from class Angle
PI_OVER_TWO, TWO_PI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleUnaryOperatornormalizer(double lo) Creates an operator for normalizing/reducing an angle.static Angle.Turnof(double angle) Create an instance.toDeg()Convert to aAngle.Deg.toRad()Convert to aAngle.Rad.toTurn()Convert to aAngle.Turn.Methods inherited from class Angle
equals, getAsDouble, hashCode
-
Field Details
-
ZERO
Zero. -
WITHIN_0_AND_1
Normalizing operator (result will be within the[0, 1[interval).
-
-
Constructor Details
-
Turn
private Turn(double angle) Create an instance.- Parameters:
angle- (in turns).
-
-
Method Details
-
of
Create an instance.- Parameters:
angle- (in turns).- Returns:
- a new instance.
-
toTurn
Convert to aAngle.Turn. -
toRad
-
toDeg
-
normalizer
Creates an operator for normalizing/reducing an angle. The output will be within the[lo, lo + 1[interval.- Parameters:
lo- Lower bound of the normalized interval.- Returns:
- the normalization operator.
-