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

IndexOf() public method

Returns the zero-based index of the first occurrence of a Vector3 in the Vector3List.
public IndexOf ( Vector3 item ) : int
item Vector3 The to locate in the Vector3List.
return int
        public virtual int IndexOf( Vector3 item )
        {
            for ( int i = 0; i != m_count; ++i )
                if ( m_array[ i ].Equals( item ) )
                    return i;
            return -1;
        }

Usage Example

 public override int IndexOf(Vector3 x)
 {
     lock (this.m_root)
         return(m_collection.IndexOf(x));
 }
All Usage Examples Of Axiom.Math.Collections.Vector3List::IndexOf