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