Jeff Miller

Team to Create Outside the Box

UnitOfDistance – Measure and Convert your distance


Well I was bored one night after creating the UnitOfMemory and decided what else could be useful in the future.  I came up with a UnitOfDistance to convert distances over land.  Miles v’s kilometers and everything in between.  The class was easy to come up with, finding the exact conversion rates however was a different story.  The class works by basing everything on meters.  A nice conversion method from converting from one measurement type to another.

If the precision level is not high enough for what you need, simply modify their values in the Enum list to what you do need.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.