Class Angle.Deg

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

    public static final class Angle.Deg
    extends Angle
    Unit: degrees.
    • Field Detail

      • ZERO

        public static final Angle.Deg ZERO
        Zero.
      • WITHIN_0_AND_360

        public static final java.util.function.DoubleUnaryOperator WITHIN_0_AND_360
        Normalizing operator (result will be within the [0, 360[ interval).
    • Constructor Detail

      • Deg

        private Deg​(double angle)
        Create an instance.
        Parameters:
        angle - (in degrees).
    • Method Detail

      • of

        public static Angle.Deg of​(double angle)
        Create an instance.
        Parameters:
        angle - (in degrees).
        Returns:
        a new instance.
      • normalizer

        public static java.util.function.DoubleUnaryOperator normalizer​(double lo)
        Creates an operator for normalizing/reducing an angle. The output will be within the [c, c + 360[ interval.
        Parameters:
        lo - Lower bound of the normalized interval.
        Returns:
        the normalization operator.