Click or drag to resize
DigitalRuneParticleHelperGetValueT Method
Gets the value of a uniform or a varying particle parameter.

Namespace: DigitalRune.Particles
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public static T GetValue<T>(
	this IParticleParameter<T> parameter,
	int index
)

Parameters

parameter
Type: DigitalRune.ParticlesIParticleParameterT
The particle parameter.
index
Type: SystemInt32
The index of the particle, or -1 to get the DefaultValue.

Type Parameters

T
The type of the parameter value.

Return Value

Type: T
The value of the particle at the given index if the particle parameter is varying and the index is zero or positive; otherwise the DefaultValue.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IParticleParameterT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also