Example #1
0
 public bool Equals(Location loc)
 {
     if (loc.isRelative != isRelative) return false;
     return isRelative ?
         depth == loc.depth && offset == loc.offset
         : x == loc.x && y == loc.y && z == loc.z;
 }
Example #2
0
        private void locationUpdated(Location[] locations)
        {
            string requestStr = "";
            for (int i = 0; i < locations.Length; ++i)
            {
                requestStr += locations[i].depth.ToString("0.00") + ":" + locations[i].offset.ToString("0.00") + ";";
            }

            this.LocationText = requestStr;
            if (transporter.status == Transporter.STATUS.CONNECTED)
                transporter.Send(requestStr);
        }