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; }
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); }