Home Forums Software Development .NET Check If Gaze Coordinates are Negative

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3387
    tobdev
    Participant

    I’m looking at the MinimalGazeDataStream sample for .NET and I can’t figure out how to use these coordinates.

    How would you check whether the gaze coordinates are within a certain range?

    Thanks,

    ccg123

    #3391
    tobdev
    Participant

    I figured it out – change the code to:

    lightlyFilteredGazeDataStream.Next += (s, e) => { if (e.Y < 0) Console.WriteLine("Y is negative"); };

    #3397
    Jenny [Tobii]
    Participant

    Hi,

    Glad you solved it.

    Please note that the Gaze Point coordinates will always be negative on monitors to the left and/or above the monitor set as the primary screen in Windows’ display settings. This might be the case if the display set up to be used with EyeX is not the primary but a secondary monitor. (0,0) is the top left corner of the primary screen.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.