Class AngularSpeedConverter

java.lang.Object
com.irurueta.units.AngularSpeedConverter

public class AngularSpeedConverter extends Object
Does angular speed conversions to different units. To prevent loss of accuracy, conversion should only be done as a final step before displaying angular speed measurements.
  • Constructor Details

    • AngularSpeedConverter

      private AngularSpeedConverter()
      Constructor. Prevents instantiation of helper class.
  • Method Details

    • convert

      public static void convert(AngularSpeed input, AngularSpeed output)
      Converts an angular speed to provided output angular speed unit.
      Parameters:
      input - input angular speed to be converted.
      output - output angular speed where result will be stored and containing output unit.
    • convertAndReturnNew

      public static AngularSpeed convertAndReturnNew(AngularSpeed input, AngularSpeedUnit outputUnit)
      Converts an angular speed to requested output unit.
      Parameters:
      input - input angular speed to be converted.
      outputUnit - requested output unit.
      Returns:
      converted angular speed.
    • convert

      public static void convert(AngularSpeed angularSpeed, AngularSpeedUnit outputUnit)
      Converts and updates an angular speed to requested output unit.
      Parameters:
      angularSpeed - input angular speed to be converted and updated.
      outputUnit - requested output unit.
    • convert

      public static void convert(AngularSpeed input, AngularSpeedUnit outputUnit, AngularSpeed result)
      Converts an angular speed to requested output unit.
      Parameters:
      input - input angular speed to be converted.
      outputUnit - requested output unit.
      result - angular speed instance where result will be stored.
    • convert

      public static Number convert(Number input, AngularSpeedUnit inputUnit, AngularSpeedUnit outputUnit)
      Converts an angle value from input unit to provided output unit.
      Parameters:
      input - angular speed value.
      inputUnit - input angular speed unit.
      outputUnit - output angular speed unit.
      Returns:
      converted angular speed value.
    • convert

      public static double convert(double input, AngularSpeedUnit inputUnit, AngularSpeedUnit outputUnit)
      Converts an angular speed value from input unit to provided output unit.
      Parameters:
      input - angular speed value.
      inputUnit - input angular speed unit.
      outputUnit - output angular speed unit.
      Returns:
      converted angular speed value.
    • degreesPerSecondToRadiansPerSecond

      public static double degreesPerSecondToRadiansPerSecond(double degreesPerSecond)
      Converts provided degrees per second value to radians per second.
      Parameters:
      degreesPerSecond - degrees per second value.
      Returns:
      same angular speed converted to radians per second.
    • radiansPerSecondToDegreesPerSecond

      public static double radiansPerSecondToDegreesPerSecond(double radiansPerSecond)
      Converts provided radians per second value to degrees per second.
      Parameters:
      radiansPerSecond - radians per second value.
      Returns:
      same angular speed converted to degrees per second.