VectorSignal


The VectorSignal class monitors a vector.

Properties

PropertyDescription

x

(get) x: ScalarSignal (set) (Not Available)

Represents the X component of the vector.

y

(get) y: ScalarSignal (set) (Not Available)

Represents the Y component of the vector.

z

(get) z: ScalarSignal (set) (Not Available)

Represents the Z component of the vector.

Methods

MethodDescription

expSmooth

expSmooth(dampFactor: number): VectorSignal

Smoothes a variable signal using exponential averaging over time. The argument specifies the dampening time constant in milliseconds.

Note: See also ReactiveModule.expSmooth.

valueOf (inherited from ISignal)

valueOf(): void

Throws an error. Signals are not supposed to be implicitly converted to scalar values.

See also: ScalarSignal.add, ScalarSignal.sub, ScalarSignal.mul, ScalarSignal.div