Axiom.Math.Collections.QuaternionCollection.Remove C# (CSharp) Method

Remove() public method

Removes the first occurrence of a specific Quaternion from the QuaternionCollection.
/// The specified was not found in the QuaternionCollection. ///
public Remove ( Quaternion item ) : void
item Axiom.Math.Quaternion The to remove from the QuaternionCollection.
return void
        public virtual void Remove( Quaternion item )
        {
            int i = IndexOf( item );
            if ( i < 0 )
                throw new System.ArgumentException( "Cannot remove the specified item because it was not found in the specified Collection." );

            ++m_version;
            RemoveAt( i );
        }

Usage Example

Beispiel #1
0
 public override void Remove(Quaternion x)
 {
     lock (this.m_root)
         m_collection.Remove(x);
 }