| Vector2TraitsAdd Method |
Adds the given animation values.
Namespace: DigitalRune.Animation.TraitsAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public void Add(
ref Vector2 value0,
ref Vector2 value1,
ref Vector2 result
)
Public Sub Add (
ByRef value0 As Vector2,
ByRef value1 As Vector2,
ByRef result As Vector2
)
public:
virtual void Add(
Vector2% value0,
Vector2% value1,
Vector2% result
) sealed
abstract Add :
value0 : Vector2 byref *
value1 : Vector2 byref *
result : Vector2 byref -> unit
override Add :
value0 : Vector2 byref *
value1 : Vector2 byref *
result : Vector2 byref -> unit
Parameters
- value0
- Type: Vector2
In: The first value. - value1
- Type: Vector2
In: The second value. - result
- Type: Vector2
Out: The sum value0 + value1.
Implements
IAnimationValueTraitsTAdd(T, T, T)Remarks
For some types the add operation is not commutative. This is the case if
value0 and value1 represent transformations. In this
case this method returns a combined transformation where value0
is applied before value1.
See Also