• Convert feet or meters distance to the opposite regardless of what configuration is used.

    Parameters

    • value: number

      Feet or meters

    • type: "ft" | "m"

      Type the value is in

    Returns number

    • Feet or meters, opposite of what set type was
    pf1.utils.swapDistance(30, "ft"); // => 9
    pf1.utils.swapDistance(9, "m"); // => 30
    • On invalid parameters.