Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 protected bool Equals(SafetyController other)
 {
     return(SoftLowerLimit.Equals(other.SoftLowerLimit) && SoftUpperLimit.Equals(other.SoftUpperLimit) &&
            KPosition.Equals(other.KPosition) && KVelocity.Equals(other.KVelocity));
 }