A yard is a royal unit of measure.  It is used for measuring length.  If you need to measure length, you should use meters instead.