예제 #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;
 }
예제 #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);
        }