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