MLGazeRecognitionState
Information about the state of the Gaze Recognition system. This structure must be initialized by calling MLGazeRecognitionStateInit() before use.
Public Methods
MLGazeRecognitionState
public MLGazeRecognitionState(
uint setVersion
)
Parameters
Type | Name | Description |
---|---|---|
uint | setVersion |
Public Attributes
AmplitudeDeg
Metadata field for amplitude of the current movement, which is eye-position displacement in degrees of visual angle. Amplitude applies to saccades and pursuit, otherwise NaN
public readonly float AmplitudeDeg;
Behavior
Represents what known gaze Recognition behavior is present.
public readonly Behavior Behavior;
Type | Description |
---|---|
readonly Behavior | A set of mutually-exclusive behaviors that the Gaze Recognition system can report. |
DirectionRadial
Metadata field for direction of the current movement, in radial degrees (0-360). Direction field applies to saccades and pursuit, otherwise NaN
public readonly float DirectionRadial;
DurationS
Metadata field for duration of the current behavior, in seconds. Duration applies to all gaze types.
public readonly float DurationS;
Error
Represents what gaze Recognition error (if any) is present.
public readonly Error Error;
Type | Description |
---|---|
readonly Error | A set of possible error codes that the Gaze Recognition system can report. |
EyeLeft
A vector for eye-in-skull position of left eye, even if right eye is closed
public readonly MLVec2f EyeLeft;
Type | Description |
---|---|
readonly MLVec2f | 2D vector represented with X and Y floats. |
EyeRight
A vector for eye-in-skull position of right eye, even if left eye is closed.
public readonly MLVec2f EyeRight;
Type | Description |
---|---|
readonly MLVec2f | 2D vector represented with X and Y floats. |
OnsetS
Metadata field for onset of the current behavior, in seconds. Onset applies to all behaviors and marks the time when the current behavior began.
public readonly float OnsetS;
Timestamp
The timestamp accociated with all data fields in this struct, giving the headset clock.
public readonly long Timestamp;
VelocityDegps
Metadata field for velocity of the current movement, in degrees per second. Velocity field applies to saccades and pursuit, otherwise NaN
public readonly float VelocityDegps;
Version
Version of this structure.
public readonly uint Version;