C# Class Axiom.Math.Collections.QuaternionCollection

Inheritance: ICollection, IList, IEnumerable, ICloneable
Datei anzeigen Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
Add ( Quaternion item ) : int

Adds a Quaternion to the end of the QuaternionCollection.

AddRange ( Quaternion x ) : int

Adds the elements of a Quaternion array to the current QuaternionCollection.

AddRange ( QuaternionCollection x ) : int

Adds the elements of another QuaternionCollection to the current QuaternionCollection.

Clear ( ) : void

Removes all elements from the QuaternionCollection.

Clone ( ) : object

Creates a shallow copy of the QuaternionCollection.

Contains ( Quaternion item ) : bool

Determines whether a given Quaternion is in the QuaternionCollection.

CopyTo ( Quaternion array ) : void

Copies the entire QuaternionCollection to a one-dimensional Quaternion array.

CopyTo ( Quaternion array, int start ) : void

Copies the entire QuaternionCollection to a one-dimensional Quaternion array, starting at the specified index of the target array.

GetEnumerator ( ) : IQuaternionCollectionEnumerator

Returns an enumerator that can iterate through the QuaternionCollection.

ICollection ( Array array, int start ) : void
IList ( int pos ) : void
IList ( int pos, object x ) : void
IList ( object x ) : void
IndexOf ( Quaternion item ) : int

Returns the zero-based index of the first occurrence of a Quaternion in the QuaternionCollection.

Insert ( int index, Quaternion item ) : void

Inserts an element into the QuaternionCollection at the specified index.

QuaternionCollection ( ) : System

Initializes a new instance of the QuaternionCollection class that is empty and has the default initial capacity.

QuaternionCollection ( Quaternion a ) : System

Initializes a new instance of the QuaternionCollection class that contains elements copied from the specified Quaternion array.

QuaternionCollection ( QuaternionCollection c ) : System

Initializes a new instance of the QuaternionCollection class that contains elements copied from the specified QuaternionCollection.

QuaternionCollection ( int capacity ) : System

Initializes a new instance of the QuaternionCollection class that has the specified initial capacity.

ReadOnly ( QuaternionCollection list ) : QuaternionCollection

Creates a read-only wrapper for a QuaternionCollection instance.

Remove ( Quaternion item ) : void

Removes the first occurrence of a specific Quaternion from the QuaternionCollection.

RemoveAt ( int index ) : void

Removes the element at the specified index of the QuaternionCollection.

Synchronized ( QuaternionCollection list ) : QuaternionCollection

Creates a synchronized (thread-safe) wrapper for a QuaternionCollection instance.

TrimToSize ( ) : void

Sets the capacity to the actual number of elements.

this ( int index ) : Quaternion

Gets or sets the Quaternion at the specified index.

this ( int i ) : objectIList.System

Protected Methods

Method Description
QuaternionCollection ( Tag t ) : System

Private Methods

Method Description
EnsureCapacity ( int min ) : void
IEnumerable ( ) : IEnumerator
IList ( object x ) : bool
IList ( object x ) : int
ValidateIndex ( int i ) : void
ValidateIndex ( int i, bool allowEqualEnd ) : void

Method Details

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

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

AddRange() public method

Adds the elements of another QuaternionCollection to the current QuaternionCollection.
public AddRange ( QuaternionCollection x ) : int
x QuaternionCollection The QuaternionCollection whose elements should be added to the end of the current QuaternionCollection.
return int

Clear() public method

Removes all elements from the QuaternionCollection.
public Clear ( ) : void
return void

Clone() public method

Creates a shallow copy of the QuaternionCollection.
public Clone ( ) : object
return object

Contains() public method

Determines whether a given Quaternion is in the QuaternionCollection.
public Contains ( Quaternion item ) : bool
item Axiom.Math.Quaternion The to check for.
return bool

CopyTo() public method

Copies the entire QuaternionCollection to a one-dimensional Quaternion array.
public CopyTo ( Quaternion array ) : void
array Axiom.Math.Quaternion The one-dimensional array to copy to.
return void

CopyTo() public method

Copies the entire QuaternionCollection to a one-dimensional Quaternion array, starting at the specified index of the target array.
public CopyTo ( Quaternion array, int start ) : void
array Axiom.Math.Quaternion The one-dimensional array to copy to.
start int The zero-based index in at which copying begins.
return void

GetEnumerator() public method

Returns an enumerator that can iterate through the QuaternionCollection.
public GetEnumerator ( ) : IQuaternionCollectionEnumerator
return IQuaternionCollectionEnumerator

ICollection() public method

public ICollection ( Array array, int start ) : void
array System.Array
start int
return void

IList() public method

public IList ( int pos ) : void
pos int
return void

IList() public method

public IList ( int pos, object x ) : void
pos int
x object
return void

IList() public method

public IList ( object x ) : void
x object
return void

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

Insert() public method

Inserts an element into the QuaternionCollection at the specified index.
/// is less than zero /// -or- /// is equal to or greater than . ///
public Insert ( int index, Quaternion item ) : void
index int The zero-based index at which should be inserted.
item Axiom.Math.Quaternion The to insert.
return void

QuaternionCollection() public method

Initializes a new instance of the QuaternionCollection class that is empty and has the default initial capacity.
public QuaternionCollection ( ) : System
return System

QuaternionCollection() public method

Initializes a new instance of the QuaternionCollection class that contains elements copied from the specified Quaternion array.
public QuaternionCollection ( Quaternion a ) : System
a Axiom.Math.Quaternion The array whose elements are copied to the new list.
return System

QuaternionCollection() public method

Initializes a new instance of the QuaternionCollection class that contains elements copied from the specified QuaternionCollection.
public QuaternionCollection ( QuaternionCollection c ) : System
c QuaternionCollection The QuaternionCollection whose elements are copied to the new collection.
return System

QuaternionCollection() protected method

protected QuaternionCollection ( Tag t ) : System
t Tag
return System

QuaternionCollection() public method

Initializes a new instance of the QuaternionCollection class that has the specified initial capacity.
public QuaternionCollection ( int capacity ) : System
capacity int /// The number of elements that the new QuaternionCollection is initially capable of storing. ///
return System

ReadOnly() public static method

Creates a read-only wrapper for a QuaternionCollection instance.
public static ReadOnly ( QuaternionCollection list ) : QuaternionCollection
list QuaternionCollection
return QuaternionCollection

Remove() public method

Removes the first occurrence of a specific Quaternion from the QuaternionCollection.
/// The specified was not found in the QuaternionCollection. ///
public Remove ( Quaternion item ) : void
item Axiom.Math.Quaternion The to remove from the QuaternionCollection.
return void

RemoveAt() public method

Removes the element at the specified index of the QuaternionCollection.
/// is less than zero /// -or- /// is equal to or greater than . ///
public RemoveAt ( int index ) : void
index int The zero-based index of the element to remove.
return void

Synchronized() public static method

Creates a synchronized (thread-safe) wrapper for a QuaternionCollection instance.
public static Synchronized ( QuaternionCollection list ) : QuaternionCollection
list QuaternionCollection
return QuaternionCollection

TrimToSize() public method

Sets the capacity to the actual number of elements.
public TrimToSize ( ) : void
return void

this() public method

Gets or sets the Quaternion at the specified index.
/// is less than zero /// -or- /// is equal to or greater than . ///
public this ( int index ) : Quaternion
index int The zero-based index of the element to get or set.
return Axiom.Math.Quaternion

this() public method

public this ( int i ) : objectIList.System
i int
return objectIList.System