ProtoTwin API
    Preparing search index...

    Class InspectorUnits

    Units for display in the inspector.

    Index

    Properties

    Angular distance units.

    force: ForceUnits

    Force units.

    Linear distance units.

    mass: MassUnits

    Mass units.

    Methods

    • Converts a value from internal units to the specified unit type.

      Parameters

      • value: number

        The value to be converted.

      • type: UnitType

        The units to be converted to.

      Returns number

      The converted value.

    • The suffix for the specified unit type.

      Parameters

      Returns string

      The suffix.

    • Converts a value from the specified units to internal units.

      Parameters

      • value: number

        The value to be converted.

      • type: UnitType

        The units to be converted from.

      Returns number

      The converted value.