public override int GetHashCode() { int hash = 1; if (TotalPathLength != 0D) { hash ^= TotalPathLength.GetHashCode(); } if (TotalTime != 0D) { hash ^= TotalTime.GetHashCode(); } if (PreferredAccel != 0D) { hash ^= PreferredAccel.GetHashCode(); } if (PreferredDecel != 0D) { hash ^= PreferredDecel.GetHashCode(); } if (MaxAccel != 0D) { hash ^= MaxAccel.GetHashCode(); } if (MinDecel != 0D) { hash ^= MinDecel.GetHashCode(); } if (SpeedLimitBuffer != 0D) { hash ^= SpeedLimitBuffer.GetHashCode(); } if (SpeedWeight != 0D) { hash ^= SpeedWeight.GetHashCode(); } if (JerkWeight != 0D) { hash ^= JerkWeight.GetHashCode(); } if (ObstacleWeight != 0D) { hash ^= ObstacleWeight.GetHashCode(); } if (UnblockingObstacleCost != 0D) { hash ^= UnblockingObstacleCost.GetHashCode(); } if (stBoundaryConfig_ != null) { hash ^= StBoundaryConfig.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (TotalPathLength != 0D) { hash ^= TotalPathLength.GetHashCode(); } if (TotalTime != 0D) { hash ^= TotalTime.GetHashCode(); } if (MatrixDimensionS != 0) { hash ^= MatrixDimensionS.GetHashCode(); } if (MatrixDimensionT != 0) { hash ^= MatrixDimensionT.GetHashCode(); } if (SpeedWeight != 0D) { hash ^= SpeedWeight.GetHashCode(); } if (AccelWeight != 0D) { hash ^= AccelWeight.GetHashCode(); } if (JerkWeight != 0D) { hash ^= JerkWeight.GetHashCode(); } if (ObstacleWeight != 0D) { hash ^= ObstacleWeight.GetHashCode(); } if (ReferenceWeight != 0D) { hash ^= ReferenceWeight.GetHashCode(); } if (GoDownBuffer != 0D) { hash ^= GoDownBuffer.GetHashCode(); } if (GoUpBuffer != 0D) { hash ^= GoUpBuffer.GetHashCode(); } if (DefaultObstacleCost != 0D) { hash ^= DefaultObstacleCost.GetHashCode(); } if (DefaultSpeedCost != 0D) { hash ^= DefaultSpeedCost.GetHashCode(); } if (ExceedSpeedPenalty != 0D) { hash ^= ExceedSpeedPenalty.GetHashCode(); } if (LowSpeedPenalty != 0D) { hash ^= LowSpeedPenalty.GetHashCode(); } if (KeepClearLowSpeedPenalty != 0D) { hash ^= KeepClearLowSpeedPenalty.GetHashCode(); } if (AccelPenalty != 0D) { hash ^= AccelPenalty.GetHashCode(); } if (DecelPenalty != 0D) { hash ^= DecelPenalty.GetHashCode(); } if (PositiveJerkCoeff != 0D) { hash ^= PositiveJerkCoeff.GetHashCode(); } if (NegativeJerkCoeff != 0D) { hash ^= NegativeJerkCoeff.GetHashCode(); } if (MaxAcceleration != 0D) { hash ^= MaxAcceleration.GetHashCode(); } if (MaxDeceleration != 0D) { hash ^= MaxDeceleration.GetHashCode(); } if (stBoundaryConfig_ != null) { hash ^= StBoundaryConfig.GetHashCode(); } return(hash); }