Class Angle.Turn

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

public static final class Angle.Turn extends Angle
Unit: turns.
  • Field Details

    • ZERO

      public static final Angle.Turn ZERO
      Zero.
    • WITHIN_0_AND_1

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

    • Turn

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

    • of

      public static Angle.Turn of(double angle)
      Create an instance.
      Parameters:
      angle - (in turns).
      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 [lo, lo + 1[ interval.
      Parameters:
      lo - Lower bound of the normalized interval.
      Returns:
      the normalization operator.