Class Angle.Deg

java.lang.Object
org.apache.commons.numbers.angle.Angle
org.apache.commons.numbers.angle.Angle.Deg
All Implemented Interfaces:
DoubleSupplier
Enclosing class:
Angle

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

    • ZERO

      public static final Angle.Deg ZERO
      Zero.
    • WITHIN_0_AND_360

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

    • Deg

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

    • of

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

      public Angle.Turn toTurn()
      Convert to a Angle.Turn.
      Specified by:
      toTurn in class Angle
      Returns:
      the angle in turns.
    • toRad

      public Angle.Rad toRad()
      Convert to a Angle.Rad.
      Specified by:
      toRad in class Angle
      Returns:
      the angle in radians.
    • toDeg

      public Angle.Deg toDeg()
      Convert to a Angle.Deg.
      Specified by:
      toDeg in class Angle
      Returns:
      the angle in degrees.
    • normalizer

      public static 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.