Class FixtureCollection
- Namespace
- Alis.Core.Physic.Dynamics
- Assembly
- Alis.dll
The fixture collection class
public class FixtureCollection : IList<Fixture>, ICollection<Fixture>, IEnumerable<Fixture>, IEnumerable
Inheritance
Implements
Inherited Members
Constructors
FixtureCollection(Body)
Initializes a new instance of the Alis.Core.Physic.Dynamics.FixtureCollection class
public FixtureCollection(Body body)
Parameters
body
Body-
The body
Fields
_body
The body
private readonly Body _body
Field Value
_generationStamp
The generation stamp
internal int _generationStamp
Field Value
_list
The fixture
internal readonly List<Fixture> _list
Field Value
Properties
Count
Gets the value of the count
public int Count { get; }
Property Value
IsReadOnly
Gets the value of the is read only
public bool IsReadOnly { get; }
Property Value
this[int]
The not supported exception
public Fixture this[int index] { get; set; }
Property Value
Methods
Contains(Fixture)
Describes whether this instance contains
public bool Contains(Fixture item)
Parameters
item
Fixture-
The item
Returns
- bool
-
The bool
CopyTo(Fixture[], int)
Copies the to using the specified array
public void CopyTo(Fixture[] array, int arrayIndex)
Parameters
GetEnumerator()
Gets the enumerator
public FixtureCollection.FixtureEnumerator GetEnumerator()
Returns
- FixtureCollection.FixtureEnumerator
-
The fixture enumerator
IndexOf(Fixture)
Indexes the of using the specified item
public int IndexOf(Fixture item)
Parameters
item
Fixture-
The item
Returns
- int
-
The int
ICollection<Fixture>.Add(Fixture)
Adds the item
void ICollection<Fixture>.Add(Fixture item)
Parameters
item
Fixture-
The item
Exceptions
ICollection<Fixture>.Clear()
Clears this instance
void ICollection<Fixture>.Clear()
Exceptions
ICollection<Fixture>.Remove(Fixture)
Describes whether this instance remove
bool ICollection<Fixture>.Remove(Fixture item)
Parameters
item
Fixture-
The item
Returns
- bool
-
The bool
IEnumerable<Fixture>.GetEnumerator()
Gets the enumerator
IEnumerator<Fixture> IEnumerable<Fixture>.GetEnumerator()
Returns
- IEnumerator<Fixture>
-
An enumerator of fixture
IList<Fixture>.Insert(int, Fixture)
Inserts the index
void IList<Fixture>.Insert(int index, Fixture item)
Parameters
Exceptions
IList<Fixture>.RemoveAt(int)
Removes the at using the specified index
void IList<Fixture>.RemoveAt(int index)
Parameters
index
int-
The index
Exceptions
IEnumerable.GetEnumerator()
Gets the enumerator
IEnumerator IEnumerable.GetEnumerator()
Returns
- IEnumerator
-
The enumerator
See Also
-
IEnumerable<T>ICollection<T>IList<T>