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

AddRange() public method

Adds the elements of a Quaternion array to the current QuaternionCollection.
public AddRange ( Quaternion x ) : int
x Axiom.Math.Quaternion The array whose elements should be added to the end of the QuaternionCollection.
return int
        public virtual int AddRange( Quaternion[] x )
        {
            if ( m_count + x.Length >= m_array.Length )
                EnsureCapacity( m_count + x.Length );

            Array.Copy( x, 0, m_array, m_count, x.Length );
            m_count += x.Length;
            m_version++;

            return m_count;
        }

Same methods

QuaternionCollection::AddRange ( QuaternionCollection x ) : int

Usage Example

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