SIVector3.MulByTransformation

Description

Right-multiplies the vector v by the transformation t and stores the result in this vector: this = v . t

Scripting Syntax

SIVector3.MulByTransformation( v, t );

Parameters

Parameter Type Description
v SIVector3 Operand vector
t SITransformation Operand transformation

Examples

VBScript Example

dim v1, v2, rotAngles, t1
' Create 3D vectors.
set v1 = XSIMath.CreateVector3
set v2 = XSIMath.CreateVector3
set rotAngles = XSIMath.CreateVector3
' Create Transformation.
set t1 = XSIMath.CreateTransform
v1.Set 1.0, 0.0, 0.0
rotAngles.Set 0.0, 0.0, 0.7853981633974483
t1.SetRotationFromXYZAngles rotAngles
v2.MulByTransformation v1, t1

See Also

SIVector3.MulByTransformationInPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion