Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Variable

Represents a variable scalar quantity with no fixed value.

extends

Scalar

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

name

name: string

The name with which the Scalar.Variable is going to be identified.

quantity

quantity: "scalar" = "scalar"

type

type: "variable" = "variable"

Methods

add

div

  • Creates and returns a Scalar.Expression for the division of two Scalar objects. The type of this does not matter because dividing a variable scalar by another scalar always results in an expresion.

    Parameters

    Returns Expression

    Expression for dividing this by that.

mul

  • Creates and returns a Scalar.Expression for the multiplication of two Scalar objects. The type of this does not matter because multiplying a variable scalar by another scalar always results in an expresion.

    Parameters

    Returns Expression

    Expression for subtracting that from this.

  • Creates and returns a Vector.Expression for the scaling of a Vector object. The type of this does not matter because scaling a variable vector by a scalar always results in an expresion.

    Parameters

    Returns Expression

    Expression for scaling that by this.

pow

  • Creates and returns a Scalar.Expression for exponentiation of two Scalar objects. The type of this does not matter because exponentiating a scalar by a variable scalar always results in an expresion.

    Parameters

    Returns Expression

    Expression for exponentiating this by that.

sub

  • Creates and returns a Scalar.Expression for the subtraction of two Scalar objects. The type of this does not matter because subtracting a variable scalar from another scalar always results in an expresion.

    Parameters

    Returns Expression

    Expression for subtracting that from this.

Generated using TypeDoc