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

Remove() public method

Removes the first occurrence of a specific Vector3 from the Vector3List.
/// The specified was not found in the Vector3List. ///
public Remove ( Vector3 item ) : void
item Vector3 The to remove from the Vector3List.
return void
        public virtual void Remove( Vector3 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

 public override void Remove(Vector3 x)
 {
     lock (this.m_root)
         m_collection.Remove(x);
 }