Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • Dimensions

Index

Constructors

constructor

  • The Dimensions class captures the physical dimensions associated with a unit of measure.

    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

Properties

L

L: QQ

The length component of the dimensions object.

M

M: QQ

The mass component of the dimensions object.

Q

Q: QQ

The charge component of the dimensions object.

T

T: QQ

The time component of the dimensions object.

amount

amount: QQ

The amount component of the dimensions object.

intensity

intensity: QQ

The intensity component of the dimensions object.

temperature

temperature: QQ

The temperature component of the dimensions object.

Static AMOUNT

AMOUNT: Dimensions = new Dimensions(R0, R0, R0, R0, R0, R1, R0)

Static CHARGE

CHARGE: Dimensions = new Dimensions(R0, R0, R0, R1, R0, R0, R0)

Q1

Static CURRENT

CURRENT: Dimensions = new Dimensions(R0, R0, M1, R1, R0, R0, R0)

Q1T-1

Static INTENSITY

INTENSITY: Dimensions = new Dimensions(R0, R0, R0, R0, R0, R0, R1)

Static LENGTH

LENGTH: Dimensions = new Dimensions(R0, R1, R0, R0, R0, R0, R0)

L1

Static MASS

MASS: Dimensions = new Dimensions(R1, R0, R0, R0, R0, R0, R0)

M1

Static ONE

ONE: Dimensions = new Dimensions(R0, R0, R0, R0, R0, R0, R0)

All exponents are zero, a dimensionless quantity.

Static TEMPERATURE

TEMPERATURE: Dimensions = new Dimensions(R0, R0, R0, R0, R1, R0, R0)

Static TIME

TIME: Dimensions = new Dimensions(R0, R0, R1, R0, R0, R0, R0)

T1

Methods

__add__

__div__

__mul__

__neg__

__pos__

__radd__

__rdiv__

__rmul__

__rsub__

__sub__

compatible

div

inv

isOne

  • isOne(): boolean
  • 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.

mul

neg

pow

sqrt

toString

  • toString(): string