Package org.apache.commons.numbers.angle
Class Angle.Normalizer
- java.lang.Object
-
- org.apache.commons.numbers.angle.Angle.Normalizer
-
- All Implemented Interfaces:
java.util.function.DoubleUnaryOperator
- Enclosing class:
- Angle
private static final class Angle.Normalizer extends java.lang.Object implements java.util.function.DoubleUnaryOperator
Normalizes an angle around a center value.
-
-
Constructor Summary
Constructors Constructor Description Normalizer(double lo, double period)
Note: It is assumed that both arguments have the same unit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
applyAsDouble(double a)
-
-
-
Field Detail
-
lo
private final double lo
Lower bound.
-
hi
private final double hi
Upper bound.
-
period
private final double period
Period.
-
reduce
private final Reduce reduce
Normalizer.
-
-