export type EyeGazeEvent = CustomEvent ; export class EyeGazeData { public gazePositionXY : [ number , number ] = [ 0 , 0 ] ; public gazeOriginRightXYZ : [ number , number , number ] = [ 0 , 0 , 0 ] ; public gazeOriginLeftXYZ : [ number , number , number ] = [ 0 , 0 , 0 ] ; public eyePositionRightNormalizedXYZ : [ number , number , number ] = [ 0 , 0 , 0 ] ; public eyePositionLeftNormalizedXYZ : [ number , number , number ] = [ 0 , 0 , 0 ] ; public headPositionXYZ : [ number , number , number ] = [ 0 , 0 , 0 ] ; public headRotationXYZ : [ number , number , number ] = [ 0 , 0 , 0 ] ; public userPresence = false ; public toString ( ) { let message = '' ; message += `Gaze Position: ${ this . gazePositionXY }\n` ; message += `Gaze Origin Right: ${ this . gazeOriginRightXYZ }\n` ; message += `Gaze Origin Left: ${ this . gazeOriginLeftXYZ }\n` ; message += `Eye Position Normalized Right: ${ this . eyePositionRightNormalizedXYZ }\n` ; message += `Eye Position Normalized Left: ${ this . eyePositionLeftNormalizedXYZ }\n` ; message += `Head Position: ${ this . headPositionXYZ }\n` ; message += `Head Rotation: ${ this . headRotationXYZ }\n` ; message += `User Presence: ${ this . userPresence }\n` ; return message ; } }