Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = SoftLowerLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ SoftUpperLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ KPosition.GetHashCode();
         hashCode = (hashCode * 397) ^ KVelocity.GetHashCode();
         return(hashCode);
     }
 }
Example #2
0
 protected bool Equals(SafetyController other)
 {
     return(SoftLowerLimit.Equals(other.SoftLowerLimit) && SoftUpperLimit.Equals(other.SoftUpperLimit) &&
            KPosition.Equals(other.KPosition) && KVelocity.Equals(other.KVelocity));
 }