• 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

    Example

    pf1.utils.swapDistance(30, "ft"); // => 9
    pf1.utils.swapDistance(9, "m"); // => 30

    Throws

    • On invalid parameters.

Generated using TypeDoc