Add C# implementaion of 86 Target

This commit is contained in:
Andrew Cooper
2021-10-04 17:45:55 +11:00
parent 78154bc36e
commit 39ba532739
12 changed files with 399 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
namespace Target
{
internal class Offset
{
public Offset(float deltaX, float deltaY, float deltaZ)
{
DeltaX = deltaX;
DeltaY = deltaY;
DeltaZ = deltaZ;
Distance = (float)Math.Sqrt(deltaX * deltaX + deltaY * deltaY + deltaZ + deltaZ);
}
public float DeltaX { get; }
public float DeltaY { get; }
public float DeltaZ { get; }
public float Distance { get; }
}
}