GazeData.cs 706 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GazeWebSocketServer
{
    struct GazeData
    {
        public readonly float leftX;
        public readonly float leftY;
        public readonly float rightX;
        public readonly float rightY;

        public GazeData(float leftX, float leftY, float rightX, float rightY)
        {
            this.leftX = leftX;
            this.leftY = leftY;
            this.rightX = rightX;
            this.rightY = rightY;
        }

        public override string ToString()
        {
            return $"\"{leftX}\", \"{leftY}\", \"{rightX}\", \"{rightY}\"";
        }
    }
}