ScaleAddInPlace (SIVector3)
Description
Sets the value of this vector to the scalar multiplication of itself by s and then adds vector v: this = s*this + v
Scripting Syntax
SIVector3.ScaleAddInPlace( s, v1, v2 )
C# Syntax
SIVector3.ScaleAddInPlace( Double in_dScalar, SIVector3 in_pVector );Parameters
|
Parameter |
Type |
Description |
|
s |
Floating Point value |
Scalar multiplicator of vector v1 |
|
v1 |
Operand vector |
|
|
v2 |
Operand vector |
Examples
VBScript Example
dim v1, v2 ' Create 3D vectors. set v1 = XSIMath.CreateVector3(1.0, 2.0, 3.0) set v2 = XSIMath.CreateVector3(3.0, 4.0, 5.0) 'v1 = 2.5 * v1 + v2 v1.ScaleAddInPlace 2.5, v2
See Also
|
|
Autodesk Softimage v7.5