Vector2Accumulator

Inherits from ValueAccumulator<T>

Declaration

public sealed class Vector2Accumulator : ValueAccumulator<Vector2>

Description

Accumulates Vector2 values into a single total value.

Properties

DefaultValueThe default value of T.

Methods

AddIncreases the accumulated total by a given value.
SubtractDecreases the accumulated total by a given value.
Inherited

Properties

valuesThe stored values with their given identifiers (Read only).
CountThe number of unique values being accumulated (Read only).
Inherited

Methods

GetValueReturns the value stored with the specified identifier.
SetValueStores a given value with the specified identifier. The total accumulated value is updated based on the difference between the new and old value.
RemoveValueRemoves the value stored with the given identifier and updates the total accumulated value.
ClearRemoves all stored values and resets the total accumulated value.