//
//  UnitConverter.h
//  DsUltilities
//
//  Created by Dirk Stichling on 24.08.08.
//  Copyright 2008 Dirk Stichling. All rights reserved.
//

#import <DsUtilities/MyCocoa.h>
#import <DsUtilities/DsPreferences.h>

@interface UnitConverter : NSObject {
}

+ (double) metersToMiles:(double)meters;
+ (double) metersToFeet:(double)meters;
+ (double) metersToNauticalMiles:(double)meters;
+ (double) feetToMeters:(double)feet;
+ (double) convertMeters:(double)meters forUnitMode:(UnitMode)unitMode;
+ (NSString*) getLengthString:(double)length;
+ (NSString*) getLengthString:(double)length decimals:(NSInteger)decimals;
+ (NSString*) getLengthString:(double)length decimals:(NSInteger)decimals lengthIsConverted:(BOOL)lengthIsConverted;
+ (NSString*) getHeightString:(double)length;
+ (NSString*) getHeightString:(double)length decimals:(NSInteger)decimals;
+ (NSString*) getHeightString:(double)length decimals:(NSInteger)decimals lengthIsConverted:(BOOL)lengthIsConverted;
+ (NSString*) getSpeedString:(double)metersPerSecond;

@end
