#include <Distance.h>
Public Member Functions | |
MCORE_INLINE | Distance (double units, EUnitType unitType) |
MCORE_INLINE | Distance (float units, EUnitType unitType) |
MCORE_INLINE | Distance (const Distance &other) |
const Distance & | ConvertTo (EUnitType targetUnitType) |
MCORE_INLINE Distance | ConvertedTo (EUnitType targetUnitType) const |
MCORE_INLINE double | GetDistance () const |
MCORE_INLINE EUnitType | GetUnitType () const |
MCORE_INLINE void | Set (double dist, EUnitType unitType) |
MCORE_INLINE void | SetDistance (double dist) |
MCORE_INLINE void | SetUnitType (EUnitType unitType) |
MCORE_INLINE double | CalcDistanceInUnitType (EUnitType targetUnitType) const |
MCORE_INLINE double | CalcNumMillimeters () const |
MCORE_INLINE double | CalcNumCentimeters () const |
MCORE_INLINE double | CalcNumDecimeters () const |
MCORE_INLINE double | CalcNumMeters () const |
MCORE_INLINE double | CalcNumKilometers () const |
MCORE_INLINE double | CalcNumInches () const |
MCORE_INLINE double | CalcNumFeet () const |
MCORE_INLINE double | CalcNumYards () const |
MCORE_INLINE double | CalcNumMiles () const |
MCORE_INLINE Distance | operator- () const |
MCORE_INLINE const Distance & | operator= (const Distance &other) |
MCORE_INLINE const Distance & | operator*= (double f) |
MCORE_INLINE const Distance & | operator/= (double f) |
MCORE_INLINE const Distance & | operator+= (double f) |
MCORE_INLINE const Distance & | operator-= (double f) |
MCORE_INLINE const Distance & | operator*= (float f) |
MCORE_INLINE const Distance & | operator/= (float f) |
MCORE_INLINE const Distance & | operator+= (float f) |
MCORE_INLINE const Distance & | operator-= (float f) |
MCORE_INLINE const Distance & | operator*= (const Distance &other) |
MCORE_INLINE const Distance & | operator/= (const Distance &other) |
MCORE_INLINE const Distance & | operator+= (const Distance &other) |
MCORE_INLINE const Distance & | operator-= (const Distance &other) |
The distance class, which can be used to convert between different unit types. A unit type being for example centimeters, inches, meters, etc. You can use the ConvertTo() and ConvertedTo() methods or the CalcNumCentimeters() and similar methods or the CalcDistanceInUnitType() function to get a conversion.