/// Check if two objects are equal public override bool Equals(System.Object obj) { // If parameter is null return false. if (obj == null) { return(false); } // If parameter cannot be cast to DynamicObjectInformation return false. DynamicObjectInformation info = obj as DynamicObjectInformation; if ((System.Object)info == null) { return(false); } // Return true if the fields match: return(this.Equals(info)); }
protected override void SetState(DynamicObjectInformation information) { lerper.AddState(information.pos, information.vel); }
/// Check if two objects of type BoolObstacleInformation are equal /// Note: time is ignored for equality checking public bool Equals(DynamicObjectInformation info) { // If parameter is null return false, otherwise // Return true if the fields match: return((info != null) && (info.pos == pos && info.vel == vel)); }