private void TryLocate(IEnumerable <GeoPoint3DT> basePoints) { double baseMeanDepth = 0.0; int bCount = 0; foreach (var item in basePoints) { baseMeanDepth += item.Depth; bCount++; } if (bCount >= 3) { baseMeanDepth /= bCount; if (TargetDepth.IsInitialized) { pCore.TargetDepth = TargetDepth.Value; pCore.ProcessBasePoints(basePoints, GetTimeStamp()); } else { pCore.ProcessBasePoints(basePoints, baseMeanDepth, GetTimeStamp()); } } }
private void TryLocate(IEnumerable <GeoPoint3DT> basePoints) { double baseMeanDepth = 0.0; int bCount = 0; foreach (var item in basePoints) { baseMeanDepth += item.Depth; bCount++; } if (bCount >= 3) { baseMeanDepth /= bCount; pCore.ProcessBasePoints(basePoints, baseMeanDepth, GetTimeStamp()); } }