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

IndexOf() public method

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

Usage Example

Beispiel #1
0
 public override int IndexOf(Quaternion x)
 {
     lock (this.m_root)
         return(m_collection.IndexOf(x));
 }
All Usage Examples Of Axiom.Math.Collections.QuaternionCollection::IndexOf