Class Angle.Rad

  • All Implemented Interfaces:
    java.util.function.DoubleSupplier
    Enclosing class:
    Angle

    public static final class Angle.Rad
    extends Angle
    Unit: radians.
    • Field Detail

      • ZERO

        public static final Angle.Rad ZERO
        Zero.
      • TWO_PI

        public static final Angle.Rad TWO_PI
        2π.
      • WITHIN_0_AND_2PI

        public static final java.util.function.DoubleUnaryOperator WITHIN_0_AND_2PI
        Normalizing operator (result will be within the [0, 2π[ interval).
      • WITHIN_MINUS_PI_AND_PI

        public static final java.util.function.DoubleUnaryOperator WITHIN_MINUS_PI_AND_PI
        Normalizing operator (result will be within the [-π, π[ interval).
    • Constructor Detail

      • Rad

        private Rad​(double angle)
        Parameters:
        angle - (in radians).
    • Method Detail

      • of

        public static Angle.Rad of​(double angle)
        Parameters:
        angle - (in radians).
        Returns:
        a new intance.
      • normalizer

        public static java.util.function.DoubleUnaryOperator normalizer​(double lo)
        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.