Class Angle.Turn

    • Field Detail

      • WITHIN_0_AND_1

        public static final DoubleUnaryOperator WITHIN_0_AND_1
        Normalizing operator (result will be within the [0, 1[ interval).
    • Method Detail

      • of

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

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