10using System.Collections.Generic;
41 foreach (var frame
in frames) {
42 var copy =
new Frame();
58 public override bool Sample(
float time,
Frame toFill,
bool clampTimeToValid =
true) {
63 if (!clampTimeToValid && time < 0 || time >
length) {
The Frame class represents a set of hand and finger tracking data detected in a single frame.
const double NS_TO_S
Converts nanoseconds to seconds. Leap frames store timestamps in nanoseconds.
const double S_TO_NS
Converts seconds to nanoseconds. Leap frames store timestamps in nanoseconds.
override void LoadFrames(List< Frame > frames)
Loads this recording with data from the provided TEMPORARY list of frames. These frames reflect raw r...
override bool Sample(float time, Frame toFill, bool clampTimeToValid=true)
Samples the recording at the given time. Caller must provide a frame object that will be filled with ...