node-anemometer
    Preparing search index...

    Class WindSpeed

    Represents a WindSpeed unit with the specified value and unit type.

    Index

    Constructors

    Properties

    The unit type (e.g., km/h, m/s, kn).

    value: number

    The numeric value of the WindSpeed.

    Methods

    • Rounds the WindSpeed value to a specified number of decimal places.

      Parameters

      • decimalPlaces: number = 1

        The number of decimal places to round to.

      Returns number

      The rounded WindSpeed value.

    • Converts the WindSpeed value to kilometers per hour (km/h).

      Returns WindSpeed

      A new WindSpeed instance with the value converted to km/h.