IndirectPositionCollection

class IndirectPositionCollection : System.Object, System.Collections.Generic.IList<Vector3>, System.Collections.Generic.ICollection<Vector3>, System.Collections.Generic.IEnumerable<Vector3>, System.Collections.IEnumerable

Provides methods for maintaining a list of vertex positions.

readonly int Count

Number of positions in the collection.

Value:Number of positions.
Vector3 Item
public bool Contains(Vector3 item)

Determines whether the specified position is in the collection.

Parameters:
  • item (Microsoft.Xna.Framework.Vector3) – Position being searched for in the collection.
Returns:

true if the position was found; false otherwise.

public void CopyTo(Microsoft.Xna.Framework.Vector3[] array, int arrayIndex)

Copies the specified positions to an array, starting at the specified index.

Parameters:
  • array (Microsoft.Xna.Framework.Vector3[]) – Array of positions to be copied.
  • arrayIndex (int) – Index of the first copied position.
public System.Collections.Generic.IEnumerator<Vector3> GetEnumerator()

Gets an enumerator interface for reading the position values.

Returns:Interface for enumerating the collection of position values.
public int IndexOf(Vector3 item)

Gets the index of the specified position in a collection.

Parameters:
  • item (Microsoft.Xna.Framework.Vector3) – Position being searched for.
Returns:

Index of the specified position or -1 if not found.

System.Exception Readonly()