| SingleTraitsAdd 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 float value0,
ref float value1,
ref float result
)
Public Sub Add (
ByRef value0 As Single,
ByRef value1 As Single,
ByRef result As Single
)
public:
virtual void Add(
float% value0,
float% value1,
float% result
) sealed
abstract Add :
value0 : float32 byref *
value1 : float32 byref *
result : float32 byref -> unit
override Add :
value0 : float32 byref *
value1 : float32 byref *
result : float32 byref -> unit
Parameters
- value0
- Type: SystemSingle
In: The first value. - value1
- Type: SystemSingle
In: The second value. - result
- Type: SystemSingle
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