npm.nicfv.com
    Preparing search index...

    Class Dimension

    Represents a physical base dimension.

    Hierarchy

    Index

    Constructors

    Methods

    Constructors

    • Define a new physical base dimension.

      Parameters

      • OptionalLaTeX: string | Map<Dimension, number>

        The LaTeX symbol for this dimension

      Returns Dimension

    Methods

    • Determine if this compound is made up of the same factors as another.

      Parameters

      • other: Dimension

        Another compound to compare to

      Returns boolean

      Whether or not this compound matches another

    • Divide this compound by another.

      Parameters

      • dividend: Dimension

        The compound to divide by

      Returns Dimension

      The quotient of two compounds

    • Raise this compound to an exponent.

      Parameters

      • exponent: number

        The exponent to raise this compound by

      Returns Dimension

      The power of this compound and exponent

    • Multiply this compound by another.

      Parameters

      • factor: Dimension

        Another term or compound of similar terms

      Returns Dimension

      The product of two compounds

    • Pretty-print this compound as a LaTeX formula.

      Returns string

      The compound written as a LaTeX formula