public RecognisedMarkers Copy() { int i; List <double> f; RecognisedMarkers _copy = new RecognisedMarkers(IsLowRes); _copy.MarkersSeenID.AddRange(MarkersSeenID.ToArray()); for (i = 0; i < ModelViewMatrix.Count; i++) { f = new List <double>(); f.AddRange(ModelViewMatrix[i]); _copy.ModelViewMatrix.Add(f.ToArray()); } _copy.LastSeenDistances.AddRange(LastSeenDistances.ToArray()); f = new List <double>(); f.AddRange(ProjMatrix); _copy.ProjMatrix = f.ToArray(); for (i = 0; i < ConfirmedMarkers.Count; i++) { _copy.ConfirmedMarkers.Add(ConfirmedMarkers[i].Copy(true)); } for (i = 0; i < SuspectedMarkers.Count; i++) { _copy.SuspectedMarkers.Add(SuspectedMarkers[i].Copy(true)); } for (i = 0; i < DoorMarkers.Count; i++) { _copy.DoorMarkers.Add(DoorMarkers[i].Copy(true)); } for (i = 0; i < WallMarkers.Count; i++) { _copy.WallMarkers.Add(WallMarkers[i].Copy(true)); } for (i = 0; i < BulkheadMarkers.Count; i++) { _copy.BulkheadMarkers.Add(BulkheadMarkers[i].Copy(true)); } for (i = 0; i < ObstructMarkers.Count; i++) { _copy.ObstructMarkers.Add(ObstructMarkers[i].Copy(true)); } return(_copy); }
public RecognisedMarkers QuickCopy() { RecognisedMarkers _copy = new RecognisedMarkers(IsLowRes); _copy.MarkersSeenID.AddRange(MarkersSeenID.ToArray()); for (int i = 0; i < ModelViewMatrix.Count; i++) { List <double> f = new List <double>(); f.AddRange(ModelViewMatrix[i]); _copy.ModelViewMatrix.Add(f.ToArray()); } return(_copy); }