Simplify Target (C#) folder strucure

This commit is contained in:
Zev Spitz
2022-01-17 11:59:02 +02:00
parent e69a3d4b3f
commit eded164f64
12 changed files with 11 additions and 20 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; }
}
}