Class Dimensions

Keeps track of the dimensions of a physical quantity using seven rational exponents. Each of the exponents corresponds to a dimension in the S.I. system of units.

Properties

L: QQ

The exponent of the length dimension.

M: QQ

The exponent of the mass dimension.

Q: QQ

The exponent of the electric charge dimension.

T: QQ

The exponent of the time dimension.

amount: QQ

The exponent of the amount dimension.

intensity: QQ

The exponent of the intensity dimension.

temperature: QQ

The exponent of the temperature dimension.

AMOUNT_OF_SUBSTANCE: Dimensions
ANGULAR_MOMENTUM: Dimensions

Angular Momentum.

L2

ELECTRIC_CHARGE: Dimensions

Q1

ELECTRIC_CURRENT: Dimensions

Q1T-1

ELECTRIC_FIELD: Dimensions

Electric Field.

ELECTRIC_PERMITTIVITY_TIMES_AREA: Dimensions

Electric Permittivity times Area.

ENERGY_OR_TORQUE: Dimensions

Energy or Torque.

FORCE: Dimensions

Force.

FRICTION_COEFFICIENT: Dimensions

Friction.

INV_LENGTH: Dimensions

Inverse Length.

INV_MASS: Dimensions

Inverse Mass.

INV_MOMENT_OF_INERTIA: Dimensions

Inverse Moment of Inertia.

INV_TIME: Dimensions

Inverse Time.

LENGTH: Dimensions

L1

LUMINOUS_INTENSITY: Dimensions

M1

MOMENTUM: Dimensions

Momentum.

MOMENTUM_SQUARED: Dimensions

Momentum squared.

MOMENT_OF_INERTIA: Dimensions

Moment of Inertia.

All exponents are zero, a dimensionless quantity.

RATE_OF_CHANGE_OF_AREA: Dimensions

Rate of change of Area.

STIFFNESS: Dimensions

Stiffness.

THERMODYNAMIC_TEMPERATURE: Dimensions

T1

TIME_SQUARED: Dimensions

Time squared.

VELOCITY: Dimensions

Velocity

VELOCITY_SQUARED: Dimensions

Velocity squared

VOLUME: Dimensions

L3

Accessors

  • get summary(): number
  • Returns number

Methods

  • Returns the dimensions if they are all equal, otherwise throws an Error

    Parameters

    Returns Dimensions

  • Divides dimensions by subtracting rational exponents.

    Parameters

    Returns Dimensions

    this / rhs

  • Parameters

    Returns boolean

  • Computes the multiplicative inverse of this dimensions number. This is achived by changing the signs of all the exponent quantities.

    Returns Dimensions

    The multiplicative inverse of this dimensions number.

  • Determines whether all the exponents of this dimensions number are zero. This implies a dimensionless quantity.

    Returns boolean

    true if all the exponents are zero, otherwise false.

  • Multiplies dimensions by adding rational exponents.

    Parameters

    Returns Dimensions

    this * rhs

  • Computes the power function by multiplying rational exponents.

    Parameters

    • exponent: QQ

    Returns Dimensions

    pow(this, rhs)

  • Computes the square root by dividing each rational component by two.

    Returns Dimensions

  • Creates a representation of this Dimensions instance.

    Returns string

  • Constructor function for Dimensions.

    Parameters

    • M: QQ

      The mass component of the dimensions object.

    • L: QQ

      The length component of the dimensions object.

    • T: QQ

      The time component of the dimensions object.

    • Q: QQ

      The charge component of the dimensions object.

    • temperature: QQ

      The temperature component of the dimensions object.

    • amount: QQ

      The amount component of the dimensions object.

    • intensity: QQ

      The intensity component of the dimensions object.

    Returns Dimensions

Generated using TypeDoc