示例#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);
        }
示例#2
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);
        }
示例#3
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));
        }