Class Leap::TransformHistory

class Leap.TransformHistory

Implements a resample-able transform history.

struct TransformData

Public Static Functions

static TransformData GetTransformAtTime (RingBuffer<TransformData> history, long desiredTime, bool useInterplation = true)

Returns a head pose transform for a given time. If interpolation is off returns the latest head pose, otherwise interpolates transform data from the adjacent samples in the history buffer

Param history

Buffer containing a set of timestamped samples of the head pose transform data

Param desiredTime

Target time for the transform data

Param useInterplation

Should interpolation be used to interpolate the transform data. If false will return the latest head pose

Return

The transform data for the target time, intepolated from the history buffer for the target time if interpolation is on, otherwise just returns the latest transform data