Ejemplo n.º 1
0
        /// <inheritdoc/>
        public override bool Equals(object rhs)
        {
            if (rhs is LimitCommon)
            {
                LimitCommon other = (LimitCommon)rhs;
                return(ContactDist == other.ContactDist && Restitution == other.Restitution && Spring == other.Spring);
            }

            return(false);
        }
 ///<summary>
 /// Assigns values to a subset of fields of this struct. This subset usually contains common field shared with
 /// another struct.
 ///</summary>
 public void SetBase(LimitCommon value)
 {
     contactDist = value.contactDist;
     restitution = value.restitution;
     spring      = value.spring;
 }