net.surveyos.sourceforge.jtswarped.angles
Class AngleFormatUtilities

java.lang.Object
  extended by net.surveyos.sourceforge.jtswarped.angles.AngleFormatUtilities

public class AngleFormatUtilities
extends java.lang.Object

Provides various utility methods for conversion between angle measurements as Strings that can be accessed in a static context.


Constructor Summary
AngleFormatUtilities()
           
 
Method Summary
 double convertDecimalDegreesToRevolutions(double argAngleMeasureInDecimalDegrees)
          Converts the value in decimal degrees to revolutions.
 double convertDegreesMinutesSecondsToRevolutions(DegreesMinutesSecondsValue argValue)
          Converts the value in degrees-minutes-seconds to revolutions.
 double convertGradsToRevolutions(double argGrads)
          Converts the value in grads to revolutions.
 double convertRadiansToRevolutions(double argAngleMeasureInRadians)
          Converts the value in radians to revolutions.
 double convertRevolutionsToDecimalDegrees(double argRevolution)
          Converts the value in revolutions to decimal degrees.
 DegreesMinutesSecondsValue convertRevolutionsToDegreesMinutesSeconds(double argRevolutions)
          Converts the value in revolutions to degrees-minutes-seconds.
 double convertRevolutionsToGrads(double argRevolution)
          Converts the value in revolutions to grads.
 double convertRevolutionsToRadians(double argRevolution)
          Converts the value in revolutions to radians.
 DegreesMinutesSecondsValue createDegreesMinutesSecondsValueFromString(java.lang.String argValue)
           
 BasicSurveyorsAngle getSurveyorsAngleForRadiansValue(double argRadians)
          Returns a BasicSurveyorsAngle from the radians value provided as an argument.
 BasicSurveyorsAngle getSurveyorsAngleForRevolutionsValue(double argRevolutions)
          Returns a BasicSurveyorsAngle from the revolutions value provided.
 java.lang.String trimDoubleToNumberOfDigitsRightOfDecimal(double argDouble, int argNumberOfDigitsRight)
          Returns a String representing the double value with the numer of digits right of the decimal place trimmed to the number of digits identified in the argNumberOfDigits argument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AngleFormatUtilities

public AngleFormatUtilities()
Method Detail

trimDoubleToNumberOfDigitsRightOfDecimal

public java.lang.String trimDoubleToNumberOfDigitsRightOfDecimal(double argDouble,
                                                                 int argNumberOfDigitsRight)
Returns a String representing the double value with the numer of digits right of the decimal place trimmed to the number of digits identified in the argNumberOfDigits argument.


convertDecimalDegreesToRevolutions

public double convertDecimalDegreesToRevolutions(double argAngleMeasureInDecimalDegrees)
Converts the value in decimal degrees to revolutions.


convertRadiansToRevolutions

public double convertRadiansToRevolutions(double argAngleMeasureInRadians)
Converts the value in radians to revolutions.


convertDegreesMinutesSecondsToRevolutions

public double convertDegreesMinutesSecondsToRevolutions(DegreesMinutesSecondsValue argValue)
Converts the value in degrees-minutes-seconds to revolutions.


convertGradsToRevolutions

public double convertGradsToRevolutions(double argGrads)
Converts the value in grads to revolutions.


convertRevolutionsToDegreesMinutesSeconds

public DegreesMinutesSecondsValue convertRevolutionsToDegreesMinutesSeconds(double argRevolutions)
Converts the value in revolutions to degrees-minutes-seconds.


convertRevolutionsToDecimalDegrees

public double convertRevolutionsToDecimalDegrees(double argRevolution)
Converts the value in revolutions to decimal degrees.


convertRevolutionsToRadians

public double convertRevolutionsToRadians(double argRevolution)
Converts the value in revolutions to radians.


convertRevolutionsToGrads

public double convertRevolutionsToGrads(double argRevolution)
Converts the value in revolutions to grads.


getSurveyorsAngleForRadiansValue

public BasicSurveyorsAngle getSurveyorsAngleForRadiansValue(double argRadians)
Returns a BasicSurveyorsAngle from the radians value provided as an argument.


getSurveyorsAngleForRevolutionsValue

public BasicSurveyorsAngle getSurveyorsAngleForRevolutionsValue(double argRevolutions)
Returns a BasicSurveyorsAngle from the revolutions value provided.


createDegreesMinutesSecondsValueFromString

public DegreesMinutesSecondsValue createDegreesMinutesSecondsValueFromString(java.lang.String argValue)