ReactiveModule Overview
ReactiveModule Overview
PointSignalHistory

PointSignalHistory

The PointSignalHistory encapsulates methods for accessing values of PointSignal from previous frames.

Properties

PropertyDescription
length
(get) length: number
(set) (Not Available)


Returns how many frames are being tracked by this history object.

Methods

MethodDescription
at
at(index: number): PointSignal


Returns an PointSignal for the history value at given index.

For example, SignalHistory.at(0) returns value of signal at previous frame, while
SignalHistory.at(1) returns value of signal at two frames ago.

Note: See also SignalHistory.frame method which uses more intuitive negative indexing.
Note: You can use SignalHistory[0] to achieve same effect as calling SignalHistory.at(0)
frame
frame(relativeFrame: number): PointSignal


Returns an PointSignal for the history value at given frame relative to current one.

For example, SignalHistory.frame(-1) returns value of signal at previous frame, while
SignalHistory.frame(-2) returns value of signal at two frames ago.

Note: See also SignalHistory.at method for approach which is index based.
Note: You can use SignalHistory[-1] to achieve same effect as calling SignalHistory.frame(-1)