Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 337;

            hash = hash * 797 + RawCoordinates.GetHashCode();
            hash = hash * 797 + SmoothedCoordinates.GetHashCode();
            hash = hash * 797 + PupilCenterCoordinates.GetHashCode();
            hash = hash * 797 + PupilSize.GetHashCode();
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 2039;

            hash = hash * 1553 + RawCoordinates.GetHashCode();
            hash = hash * 1553 + SmoothedCoordinates.GetHashCode();
            hash = hash * 1553 + LeftEye.GetHashCode();
            hash = hash * 1553 + RightEye.GetHashCode();
            hash = hash * 1553 + State.GetHashCode();
            hash = hash * 1553 + IsFixated.GetHashCode();
            return(hash);
        }
Ejemplo n.º 3
0
        public override bool Equals(Object o)
        {
            var other = o as Eye;

            if (other != null)
            {
                return
                    (RawCoordinates.Equals(other.RawCoordinates) &&
                     SmoothedCoordinates.Equals(other.SmoothedCoordinates) &&
                     PupilCenterCoordinates.Equals(other.PupilCenterCoordinates) &&
                     PupilSize == other.PupilSize);
            }

            return(false);
        }
Ejemplo n.º 4
0
        public override bool Equals(Object o)
        {
            var other = o as GazeData;

            if (other != null)
            {
                return
                    (State == other.State &&
                     TimeStamp == other.TimeStamp &&
                     RawCoordinates.Equals(other.RawCoordinates) &&
                     SmoothedCoordinates.Equals(other.SmoothedCoordinates) &&
                     LeftEye.Equals(other.LeftEye) &&
                     RightEye.Equals(other.RightEye) &&
                     IsFixated == other.IsFixated);
            }

            return(false);
        }
Ejemplo n.º 5
0
        public override bool Equals(Object o)
        {
            if (ReferenceEquals(this, o))
            {
                return(true);
            }

            if (!(o is Eye))
            {
                return(false);
            }

            var other = o as Eye;

            return
                (RawCoordinates.Equals(other.RawCoordinates) &&
                 SmoothedCoordinates.Equals(other.SmoothedCoordinates) &&
                 PupilCenterCoordinates.Equals(other.PupilCenterCoordinates) &&
                 Double.Equals(PupilSize, other.PupilSize));
        }
Ejemplo n.º 6
0
        public override bool Equals(Object o)
        {
            if (ReferenceEquals(this, o))
            {
                return(true);
            }

            if (!(o is GazeData))
            {
                return(false);
            }

            var other = o as GazeData;

            return
                (State == other.State &&
                 RawCoordinates.Equals(other.RawCoordinates) &&
                 SmoothedCoordinates.Equals(other.SmoothedCoordinates) &&
                 LeftEye.Equals(other.LeftEye) &&
                 RightEye.Equals(other.RightEye) &&
                 TimeStamp == other.TimeStamp &&
                 TimeStampString.Equals(TimeStampString) &&
                 IsFixated == other.IsFixated);
        }