Struct Particle
The most basic unit of a Particle
- Inherited Members
Constructors
Particle(nint)
Creates a particle from a raw pointer, assuming the pointer references valid particle data block
Parameters
pointer
IntPtr
Fields
Pointer
Pointer to the particle data block
Field Value
Properties
this[ParticleFieldAccessor]
Parameters
accessor
ParticleField Accessor
Property Value
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
Parameters
other
object
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Get<T>(ParticleFieldAccessor<T>)
Gets the particle's field value. However, you should try to use the indexer wherever possible.
Parameters
accessor
ParticleField <T>Accessor The field accessor
Returns
- T
The field value.
Type Parameters
T
The field type.
Set<T>(ParticleFieldAccessor<T>, T)
Sets the particle's field to a value. However, you should try to use the indexer wherever possible.
Parameters
accessor
ParticleField <T>Accessor The field accessor
value
TThe value to set
Type Parameters
T
The field type.
Set<T>(ParticleFieldAccessor<T>, ref T)
Sets the particle's field to a value. However, you should try to use the indexer wherever possible.
Parameters
accessor
ParticleField <T>Accessor The field accessor
value
TThe value to set
Type Parameters
T
The field type.
Operators
operator ==(Particle, Particle)
Checks if the two particles point to the same pointer.
Parameters
particleLeft
ParticleLeft side particle to compare
particleRight
ParticleRight side particle to compare