C# Class Axiom.Math.Collections.Vector3List

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

Public Methods

Method Description
Add ( Vector3 item ) : int

Adds a Vector3 to the end of the Vector3List.

AddRange ( Vector3 x ) : int

Adds the elements of a Vector3 array to the current Vector3List.

AddRange ( Vector3List x ) : int

Adds the elements of another Vector3List to the current Vector3List.

Clear ( ) : void

Removes all elements from the Vector3List.

Clone ( ) : object

Creates a shallow copy of the Vector3List.

Contains ( Vector3 item ) : bool

Determines whether a given Vector3 is in the Vector3List.

CopyTo ( Vector3 array ) : void

Copies the entire Vector3List to a one-dimensional Vector3 array.

CopyTo ( Vector3 array, int start ) : void

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

GetEnumerator ( ) : IVector3ListEnumerator

Returns an enumerator that can iterate through the Vector3List.

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

Returns the zero-based index of the first occurrence of a Vector3 in the Vector3List.

Insert ( int index, Vector3 item ) : void

Inserts an element into the Vector3List at the specified index.

ReadOnly ( Vector3List list ) : Vector3List

Creates a read-only wrapper for a Vector3List instance.

Remove ( Vector3 item ) : void

Removes the first occurrence of a specific Vector3 from the Vector3List.

RemoveAt ( int index ) : void

Removes the element at the specified index of the Vector3List.

Synchronized ( Vector3List list ) : Vector3List

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

TrimToSize ( ) : void

Sets the capacity to the actual number of elements.

Vector3List ( ) : System

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

Vector3List ( Vector3 a ) : System

Initializes a new instance of the Vector3List class that contains elements copied from the specified Vector3 array.

Vector3List ( Vector3List c ) : System

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

Vector3List ( int capacity ) : System

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

this ( int index ) : Vector3

Gets or sets the Vector3 at the specified index.

this ( int i ) : objectIList.System

Protected Methods

Method Description
Vector3List ( 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 Vector3 to the end of the Vector3List.
public Add ( Vector3 item ) : int
item Vector3 The to be added to the end of the Vector3List.
return int

AddRange() public method

Adds the elements of a Vector3 array to the current Vector3List.
public AddRange ( Vector3 x ) : int
x Vector3 The array whose elements should be added to the end of the Vector3List.
return int

AddRange() public method

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

Clear() public method

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

Clone() public method

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

Contains() public method

Determines whether a given Vector3 is in the Vector3List.
public Contains ( Vector3 item ) : bool
item Vector3 The to check for.
return bool

CopyTo() public method

Copies the entire Vector3List to a one-dimensional Vector3 array.
public CopyTo ( Vector3 array ) : void
array Vector3 The one-dimensional array to copy to.
return void

CopyTo() public method

Copies the entire Vector3List to a one-dimensional Vector3 array, starting at the specified index of the target array.
public CopyTo ( Vector3 array, int start ) : void
array Vector3 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 Vector3List.
public GetEnumerator ( ) : IVector3ListEnumerator
return IVector3ListEnumerator

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 Vector3 in the Vector3List.
public IndexOf ( Vector3 item ) : int
item Vector3 The to locate in the Vector3List.
return int

Insert() public method

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

ReadOnly() public static method

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

Remove() public method

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

RemoveAt() public method

Removes the element at the specified index of the Vector3List.
/// 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 Vector3List instance.
public static Synchronized ( Vector3List list ) : Vector3List
list Vector3List
return Vector3List

TrimToSize() public method

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

Vector3List() public method

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

Vector3List() protected method

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

Vector3List() public method

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

Vector3List() public method

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

Vector3List() public method

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

this() public method

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

this() public method

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