From 41922540726feb64a13c7108035f7c1aee95b3dd Mon Sep 17 00:00:00 2001 From: "ai.astrakhantsev" Date: Mon, 13 Feb 2023 09:11:28 +0500 Subject: [PATCH] =?UTF-8?q?#8636739=20=D0=92=D0=B8=D0=B7=D1=83=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D1=82=D1=80=D0=B0=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=B8=203D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/TrajectoryVisualizationService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs b/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs index c6ad3b4b..36ed5106 100644 --- a/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs +++ b/AsbCloudInfrastructure/Services/TrajectoryVisualizationService.cs @@ -21,13 +21,13 @@ namespace AsbCloudInfrastructure.Services public async Task> GetTrajectoryAsync(int idWell, CancellationToken token) { var result = new List(); - var dto = (await repository.GetAsync(idWell, token)).ToArray(); + var dtos = (await repository.GetAsync(idWell, token)).ToArray(); - var prevData = dto[0]; + var prevData = dtos[0]; var prevCoordinates = new TrajectoryVisualizationDto(); - for (var i = 1; i < dto.Length; i++) + for (var i = 1; i < dtos.Length; i++) { - var data = dto[i]; + var data = dtos[i]; var flat = GetFlat(data.WellboreDepth, prevData.WellboreDepth, data.ZenithAngle); var x = prevCoordinates.X = GetX(data.AzimuthGeo, flat, prevCoordinates.X); var y = prevCoordinates.Y = GetY(data.AzimuthGeo, flat, prevCoordinates.Y);