- Timestamp:
- Feb 25, 2007, 9:29:26 PM (18 years ago)
- Location:
- trunk/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/RpUnits.cc
r568 r593 2609 2609 RpUnits* feet = NULL; 2610 2610 RpUnits* yard = NULL; 2611 RpUnits* mile = NULL; 2611 2612 2612 2613 meters = RpUnits::define("m", NULL, RP_TYPE_LENGTH, RPUNITS_METRIC); … … 2615 2616 feet = RpUnits::define("ft", inch, RP_TYPE_LENGTH); 2616 2617 yard = RpUnits::define("yd", inch, RP_TYPE_LENGTH); 2618 mile = RpUnits::define("mi", inch, RP_TYPE_LENGTH); 2617 2619 2618 2620 // RpUnits::makeMetric(meters); … … 2623 2625 RpUnits::define(inch, yard, inch2yard, yard2inch); 2624 2626 RpUnits::define(inch, meters, inch2meter, meter2inch); 2627 RpUnits::define(inch, mile, inch2mile, mile2inch); 2625 2628 2626 2629 return 0; -
trunk/src/core/RpUnitsStd.cc
r534 r593 230 230 } 231 231 232 double inch2mile (double inch) 233 { 234 return (inch/(63360)); 235 } 236 237 double mile2inch (double mi) 238 { 239 return (mi*(63360)); 240 } 241 232 242 /**************************************** 233 243 * TEMPERATURE CONVERSIONS -
trunk/src/core/RpUnitsStd.h
r534 r593 62 62 double inch2yard (double inch); 63 63 double yard2inch (double yd); 64 double inch2mile (double inch); 65 double mile2inch (double yd); 64 66 65 67
Note: See TracChangeset
for help on using the changeset viewer.