namespace SpaceGame.Api.Shared.Runtime;

public static class SimulationUnits
{
    public const float KilometersPerAu = 149_597_870.7f;
    public const float MetersPerKilometer = 1000f;

    public static float AuToKilometers(float au) => au * KilometersPerAu;

    public static float AuPerSecondToKilometersPerSecond(float auPerSecond) =>
        auPerSecond * KilometersPerAu;

    public static float MetersPerSecondToKilometersPerSecond(float metersPerSecond) =>
        metersPerSecond / MetersPerKilometer;
}
