Class Geometric1

A mutable and lockable multivector in 1D with a Euclidean metric and optional unit of measure.

Hierarchy

  • AbstractMeasure
    • Geometric1

Constructors

  • Constructs a mutable instance of Geometric1 from coordinates and an optional unit of measure.

    Parameters

    • Optional coords: [a: number, x: number]

      The 2 coordinates are in the order [a, x].

    • Optional uom: Unit

      The optional unit of measure.

    Returns Geometric1

Properties

ampere: Geometric1

SI base unit of electric current. The ampere is that constant current which, if maintained in two straight parallel conductors of infinite length, of negligible circular cross-section, and placed 1 meter apart in vacuum, would produce between these conductors a force equal to 2 x 10-7 newton per meter of length.

candela: Geometric1

SI base unit of luminous intensity. The candela is the luminous intensity, in a given direction, of a source that emits monochromatic radiation of frequency 540 x 1012 hertz and that has a radiant intensity in that direction of 1 / 683 watt per steradian.

coulomb: Geometric1

SI derived unit of electric charge, quantity of electricity.

Constructs a basis vector corresponding to the x coordinate. The returned multivector is locked.

joule: Geometric1

SI derived unit of energy, work, quantity of heat.

kelvin: Geometric1

SI base unit of thermodynamic temperature. The kelvin, unit of thermodynamic temperature, is the fraction 1 / 273.16 of the thermodynamic temperature of the triple point of water.

kilogram: Geometric1

SI base unit of mass. The kilogram is the unit of mass; it is equal to the mass of the international prototype of the kilogram.

meter: Geometric1

SI base unit of length. The meter is the length of the path travelled by light in vacuum during a time interval of 1 / 299 792 458 of a second.

SI base unit of amount of substance.

  1. The mole is the amount of substance of a system which contains as many elementary entities as there are atoms in 0.012 kilogram of carbon 12; its symbol is "mol."

  2. When the mole is used, the elementary entities must be specified and may be atoms, molecules, ions, electrons, other particles, or specified groups of such particles.

newton: Geometric1

SI derived unit of force.

Constructs a Geometric1 representing the number one. The identity element for multiplication, 1. The returned multivector is locked.

second: Geometric1

SI base unit of time. The second is the duration of 9 192 631 770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom.

Constructs a Geometric1 representing the number zero. The identity element for addition, 0. The returned multivector is locked.

Accessors

  • get a(): number
  • Returns number

  • set a(a): void
  • Parameters

    • a: number

    Returns void

  • get b(): number
  • Returns number

  • set b(b): void
  • Parameters

    • b: number

    Returns void

  • get grades(): number
  • A bitmask describing the non-zero grades that are present in this multivector.

    0x1 = scalar 0x2 = vector

    Returns number

  • get uom(): Unit
  • Returns Unit

  • set uom(uom): void
  • Parameters

    Returns void

  • get x(): number
  • Returns number

  • set x(x): void
  • Parameters

    • x: number

    Returns void

Methods

  • Parameters

    Returns Geometric1

  • Adds a multiple of a scalar to this multivector.

    Parameters

    • a: number

      The scalar value to be added to this multivector.

    • Optional uom: Unit

      The optional unit of measure.

    • Optional α: number

      The fraction of (a * uom) to be added. Default is 1.

    Returns Geometric1

    this + (a * uom) * α

  • Returns Geometric1

  • Returns Geometric1

  • Parameters

    • vector: VectorE1

    Returns Geometric1

  • Parameters

    • a: number
    • Optional uom: Unit

    Returns Geometric1

  • Parameters

    • rhs: VectorE1

    Returns Geometric1

  • Returns Geometric1

  • Parameters

    • other: unknown

    Returns boolean

  • Parameters

    • n: number

    Returns Geometric1

  • Returns Geometric1

  • Returns boolean

  • 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

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

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

    Returns number

  • Returns Geometric1

  • Returns number

  • Parameters

    • α: number
    • Optional uom: Unit

    Returns Geometric1

  • Parameters

    • v: VectorE1

    Returns Geometric1

  • Returns Geometric1

  • Returns this

  • Parameters

    • n: VectorE1

    Returns Geometric1

  • Returns Geometric1

  • Parameters

    • spinor: SpinorE1

    Returns Geometric1

  • Parameters

    • a: number

    Returns Geometric1

  • Returns Geometric1

  • Returns Geometric1

  • Parameters

    Returns Geometric1

  • Subtracts a multiple of a scalar from this multivector.

    Parameters

    • a: number

      The scalar value to be subtracted from this multivector.

    • Optional uom: Unit

      The optional unit of measure.

    • Optional α: number

      The fraction of (a * uom) to be subtracted. Default is 1.

    Returns Geometric1

    this - (a * uom) * α

  • Parameters

    • Optional fractionDigits: number

    Returns string

  • Parameters

    • Optional fractionDigits: number

    Returns string

  • Parameters

    • Optional radix: number

    Returns string

  • Parameters

    • Optional precision: number

    Returns string

  • Parameters

    • Optional radix: 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

  • Returns Geometric1

  • Parameters

    • a: number
    • Optional uom: Unit

    Returns Geometric1

  • Parameters

    • x: number
    • Optional uom: Unit

    Returns Geometric1

Generated using TypeDoc