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

Add() public method

Adds a Quaternion to the end of the QuaternionCollection.
public Add ( Quaternion item ) : int
item Axiom.Math.Quaternion The to be added to the end of the QuaternionCollection.
return int
        public virtual int Add( Quaternion item )
        {
            if ( m_count == m_array.Length )
                EnsureCapacity( m_count + 1 );

            m_array[ m_count ] = item;
            m_version++;

            return m_count++;
        }

Usage Example

Beispiel #1
0
 public override int Add(Quaternion x)
 {
     lock (this.m_root)
         return(m_collection.Add(x));
 }