예제 #1
0
        public override int GetHashCode()
        {
            int h = 17;

            unchecked
            {
                h = h * 23 + XX.GetHashCode();
                h = h * 23 + XY.GetHashCode();
                h = h * 23 + YX.GetHashCode();
                h = h * 23 + YY.GetHashCode();
            }
            return(h);
        }
예제 #2
0
파일: XYPT.cs 프로젝트: elpekozgun/OET
        public override int GetHashCode()
        {
            var hashCode = -987908381;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + x.GetHashCode();
            hashCode = hashCode * -1521134295 + y.GetHashCode();
            hashCode = hashCode * -1521134295 + XX.GetHashCode();
            hashCode = hashCode * -1521134295 + YY.GetHashCode();
            hashCode = hashCode * -1521134295 + minOfXY.GetHashCode();
            hashCode = hashCode * -1521134295 + maxOfXY.GetHashCode();
            return(hashCode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int result = 17;

            result = 31 * result + XX.GetHashCode();
            result = 31 * result + XY.GetHashCode();
            result = 31 * result + XZ.GetHashCode();

            result = 31 * result + YX.GetHashCode();
            result = 31 * result + YY.GetHashCode();
            result = 31 * result + YZ.GetHashCode();

            result = 31 * result + ZX.GetHashCode();
            result = 31 * result + ZY.GetHashCode();
            result = 31 * result + ZZ.GetHashCode();
            return(result);
        }