Hierarchy

  • AbstractMeasure
    • Spacetime1

Constructors

  • Parameters

    • a: number = 0

      the coordinate of this multivector corresponding to the one scalar. Default is zero.

    • t: number = 0

      the coordinate of this multivector corresponding to the e0 basis vector. Default is zero..

    • x: number = 0

      the coordinate of this multivector corresponding to the e1 basis vector. Default is zero.

    • b: number = 0

      the coordinate of this multivector corresponding to the I pseudoscalar. Default is zero.

    • Optional uom: Unit

      the optional unit of measure for this multivector.

    Returns Spacetime1

Properties

I: Spacetime1 = ...
ampere: Spacetime1 = ...
candela: Spacetime1 = ...
coulomb: Spacetime1 = ...
e0: Spacetime1 = ...

The vector in the Time direction.

e0 * e0 = 1

This vector is permanently locked (immutable).

e1: Spacetime1 = ...

The vector in the Space direction.

e1 * e1 = -1

This vector is permanently locked (immutable).

joule: Spacetime1 = ...
kelvin: Spacetime1 = ...
kilogram: Spacetime1 = ...
meter: Spacetime1 = ...
mole: Spacetime1 = ...
newton: Spacetime1 = ...
one: Spacetime1 = ...

The scalar value 1.

This scalar is permanently locked (immutable).

second: Spacetime1 = ...
zero: Spacetime1 = ...

The scalar value 0.

This scalar is permanently locked (immutable).

Accessors

Methods

  • Determines whether this multivector is locked. If the multivector is in the unlocked state then it is mutable. If the multivector is in the locked state then it is immutable.

    Returns boolean

  • Locks this multivector (preventing any further mutation), and returns a token that may be used to unlock it.

    Returns number

  • Parameters

    • Optional fractionDigits: number

    Returns string

  • Parameters

    • Optional fractionDigits: number

    Returns string

  • Parameters

    • Optional precision: number

    Returns string

  • Unlocks this multivector (allowing mutation), using a token that was obtained from a preceding lock method call.

    Parameters

    • token: number

    Returns this

  • Creates a grade 0 (scalar) multivector with value a * uom. The scalar returned is in the unlocked (mutable) state.

    Parameters

    • a: number

      The scaling factor for the unit of measure.

    • Optional uom: Unit

      The optional unit of measure. Equivalent to 1 if omitted.

    Returns Spacetime1

  • Creates a grade 1 (vector) multivector with a value (t * e0 + x * e1) * uom. The value returned is in the unlocked (mutable) state.

    Parameters

    • t: number

      the coordinate corresponding to the e0 basis vector.

    • x: number

      the coordinate corresponding to the e1 basis vector.

    • Optional uom: Unit

      the optional unit of measure. Equivalent to 1 if omitted.

    Returns Spacetime1

Generated using TypeDoc