218 IString msg =
"Distance has not been initialized, you must initialize "
219 "it first before comparing with another distance using [>]";
236 IString msg =
"Distance has not been initialized, you must initialize "
237 "it first before comparing with another distance using [<]";
252 if(
this == &distanceToCopy)
return *
this;
419 double resultingDistance =
Null;
423 switch(distanceUnit) {
425 resultingDistance = distanceInMeters;
429 resultingDistance = distanceInMeters / 1000.0;
433 IString msg =
"Cannot call distance() with pixels, ask for another "
440 resultingDistance = distanceInMeters / 6.9599e8;
444 if(resultingDistance ==
Null) {
445 IString msg =
"Distance does not understand the enumerated value [" +
446 IString(distanceUnit) +
"] as a unit";
450 return resultingDistance;
465 double distanceInMeters =
Null;
472 switch(distanceUnit) {
478 distanceInMeters = distance * 1000.0;
482 IString msg =
"Cannot setDistance with pixels, must convert to another "
489 distanceInMeters = distance * 6.9599e8;
493 if(distanceInMeters ==
Null) {
494 IString msg =
"Distance does not understand the enumerated value [" +
495 IString(distanceUnit) +
"] as a unit";
499 if (distanceInMeters < 0.0) {
500 IString msg =
"Negative distances are not supported, the value [" +
501 IString(distanceInMeters) +
" meters] cannot be stored in the Distance "