Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Variable

Represents a variable scalar quantity with no fixed value.

Hierarchy

Implements

Index

Constructors

constructor

Properties

classRef

classRef: Variable = Scalar.Variable

name

name: string

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

quantity

quantity: "scalar" = "scalar"

type

type: "variable" = "variable"

Accessors

neg

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 expression.

    Parameters

    Returns Expression

    Expression for dividing this by that.

getDefinition

  • getDefinition(methodName: string): "instance" | "static" | "undefined"
  • Checks whether a method exists on the object or as a static member of the class.

    Parameters

    • methodName: string

      Name of the method.

    Returns "instance" | "static" | "undefined"

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 expression.

    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 expression.

    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 expression.

    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 expression.

    Parameters

    Returns Expression

    Expression for subtracting that from this.

Static abs

Static acos

Static acosh

Static asin

Static asinh

Static atan

Static atanh

Static ceil

Static cos

Static cosh

Static exp

Static floor

Static ln

Static log

Static sin

Static sinh

Static tan

Static tanh

Generated using TypeDoc