CRSUnits
Objective-C
@interface CRSUnits : NSObjectSwift
class CRSUnits : NSObjectCommon Units
- 
                  
                  Get a unit from the units type DeclarationObjective-C + (CRSUnit *)unitFromType:(enum CRSUnitsType)type;Swift class func unit(from type: CRSUnitsType) -> CRSUnit!Parameterstypeunits type Return Valueunit 
- 
                  
                  Get a units type from the unit name DeclarationObjective-C + (enum CRSUnitsType)typeFromName:(NSString *)name;Swift class func type(fromName name: String!) -> CRSUnitsTypeParametersnameunit name Return Valueunits type 
- 
                  
                  Get a units type from the unit DeclarationObjective-C + (enum CRSUnitsType)typeFromUnit:(CRSUnit *)unit;Swift class func type(from unit: CRSUnit!) -> CRSUnitsTypeParametersunitunit Return Valueunits type 
- 
                  
                  Get a micrometre unit Return Valuemicrometre unit 
- 
                  
                  Get a millimetre unit Return Valuemillimetre unit 
- 
                  
                  Get a metre unit Return Valuemetre unit 
- 
                  
                  Get a kilometre unit Return Valuekilometre unit 
- 
                  
                  Get a US survey foot unit Return ValueUS survey foot unit 
- 
                  
                  Get a foot unit Return Valuefoot unit 
- 
                  
                  Get a microradian unit Return Valuemicroradian unit 
- 
                  
                  Get a milliradian unit Return Valuemilliradian unit 
- 
                  
                  Get a radian unit Return Valueradian unit 
- 
                  
                  Get an arc-second unit Return Valuearc-second unit 
- 
                  
                  Get an arc-minute unit Return Valuearc-minute unit 
- 
                  
                  Get a degree unit Return Valuedegree unit 
- 
                  
                  Get a grad unit Return Valuegrad unit 
- 
                  
                  Get a unity unit Return Valueunity unit 
- 
                  
                  Get a bin unit Return Valuebin unit 
- 
                  
                  Get a pascal unit Return Valuepascal unit 
- 
                  
                  Get a hectopascal unit Return Valuehectopascal unit 
- 
                  
                  Get a microsecond unit Return Valuemicrosecond unit 
- 
                  
                  Get a millisecond unit Return Valuemillisecond unit 
- 
                  
                  Get a second unit Return Valuesecond unit 
- 
                  
                  Get a minute unit Return Valueminute unit 
- 
                  
                  Get a hour unit Return Valuehour unit 
- 
                  
                  Get a day unit Return Valueday unit 
- 
                  
                  Get a year unit Return Valueyear unit 
- 
                  
                  Get a calendar second unit Return Valuecalendar second unit 
- 
                  
                  Get a calendar month unit Return Valuecalendar month unit 
- 
                  
                  Get the unit type from the name DeclarationObjective-C + (enum CRSUnitType)unitTypeFromName:(NSString *)name;Swift class func unitType(fromName name: String!) -> CRSUnitTypeParametersnameunit name Return Valueunit type 
- 
                  
                  Get the default unit for the unit type DeclarationObjective-C + (CRSUnit *)defaultUnit:(enum CRSUnitType)type;Swift class func defaultUnit(_ type: CRSUnitType) -> CRSUnit!Parameterstypeunit type Return Valuedefault unit or null if no default 
- 
                  
                  Determine if values can be converted between the two units DeclarationParametersunit1first unit unit2second unit Return Valuetrue if can convert 
- 
                  
                  Convert the value from a unit to a same typed unit, both with conversion factors DeclarationParametersvaluevalue to convert fromunit to convert from tounit to convert to Return Valueconverted value 
 View on GitHub
View on GitHub CRSUnits Class Reference
        CRSUnits Class Reference