## SIVector3.ScaleAdd

### Description

Sets the value of this vector to the scalar multiplication of vector v1 by s and then adds vector v2: this = s*v1 + v2

### C# Syntax

    SIVector3.ScaleAdd( Double in_dScalar, SIVector3 in_pVector1, SIVector3 in_pVector2 );

### Scripting Syntax

    SIVector3.ScaleAdd( s, v1, v2 );

### Parameters

Parameter | Type | Description
--- | --- | ---
s | Floating Point value | Scalar multiplicator of vector v1
v1 | SIVector3 | Operand vector
v2 | SIVector3 | Operand vector

### Examples

#### VBScript Example

    dim v1, v2, v3
    ' Create 3D vectors.
    set v1 = XSIMath.CreateVector3(1.0, 2.0, 3.0)
    set v2 = XSIMath.CreateVector3(3.0, 4.0, 5.0)
    set v3 = XSIMath.CreateVector3
    'v3 = 2.5 * v1 + v2
    v2.ScaleAdd 2.5, v1, v2

### See Also

SIVector3.ScaleAddInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion