public override int GetHashCode()
        {
            int hash = 1;

            if (PathResolution != 0D)
            {
                hash ^= PathResolution.GetHashCode();
            }
            if (QpDeltaS != 0D)
            {
                hash ^= QpDeltaS.GetHashCode();
            }
            if (MinLookAheadTime != 0D)
            {
                hash ^= MinLookAheadTime.GetHashCode();
            }
            if (MinLookAheadDistance != 0D)
            {
                hash ^= MinLookAheadDistance.GetHashCode();
            }
            if (LateralBuffer != 0D)
            {
                hash ^= LateralBuffer.GetHashCode();
            }
            if (PathOutputResolution != 0D)
            {
                hash ^= PathOutputResolution.GetHashCode();
            }
            if (LWeight != 0D)
            {
                hash ^= LWeight.GetHashCode();
            }
            if (DlWeight != 0D)
            {
                hash ^= DlWeight.GetHashCode();
            }
            if (DdlWeight != 0D)
            {
                hash ^= DdlWeight.GetHashCode();
            }
            if (DddlWeight != 0D)
            {
                hash ^= DddlWeight.GetHashCode();
            }
            if (GuidingLineWeight != 0D)
            {
                hash ^= GuidingLineWeight.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TotalPathLength != 0D)
            {
                hash ^= TotalPathLength.GetHashCode();
            }
            if (PathResolution != 0D)
            {
                hash ^= PathResolution.GetHashCode();
            }
            if (MaxDddl != 0D)
            {
                hash ^= MaxDddl.GetHashCode();
            }
            if (LWeight != 0D)
            {
                hash ^= LWeight.GetHashCode();
            }
            if (DlWeight != 0D)
            {
                hash ^= DlWeight.GetHashCode();
            }
            if (DdlWeight != 0D)
            {
                hash ^= DdlWeight.GetHashCode();
            }
            if (DddlWeight != 0D)
            {
                hash ^= DddlWeight.GetHashCode();
            }
            if (GuidingLineWeight != 0D)
            {
                hash ^= GuidingLineWeight.GetHashCode();
            }
            return(hash);
        }