Table of Contents

Class IndirectPositionCollection

Namespace
Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides methods for maintaining a list of vertex positions.

public sealed class IndirectPositionCollection : IList<Vector3>, ICollection<Vector3>, IEnumerable<Vector3>, IEnumerable
Inheritance
IndirectPositionCollection
Implements
Inherited Members

Remarks

This class is designed to collect the vertex positions for a VertexContent object. Use the contents of the PositionIndices property (of the contained VertexContent object) to index into the Positions property of the parent mesh.

Properties

Count

Number of positions in the collection.

public int Count { get; }

Property Value

int

Number of positions.

this[int]

Gets or sets the position at the specified index.

public Vector3 this[int index] { get; set; }

Parameters

index int

Property Value

Vector3

Position located at index.

Methods

Contains(Vector3)

Determines whether the specified position is in the collection.

public bool Contains(Vector3 item)

Parameters

item Vector3

Position being searched for in the collection.

Returns

bool

true if the position was found; false otherwise.

CopyTo(Vector3[], int)

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

public void CopyTo(Vector3[] array, int arrayIndex)

Parameters

array Vector3[]

Array of positions to be copied.

arrayIndex int

Index of the first copied position.

GetEnumerator()

Gets an enumerator interface for reading the position values.

public IEnumerator<Vector3> GetEnumerator()

Returns

IEnumerator<Vector3>

Interface for enumerating the collection of position values.

IndexOf(Vector3)

Gets the index of the specified position in a collection.

public int IndexOf(Vector3 item)

Parameters

item Vector3

Position being searched for.

Returns

int

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