MulByMatrix4 (SIVector3)

Description

Right-multiplies the vector v by the matrix m and stores the result in this vector: this = v . m

Scripting Syntax

SIVector3.MulByMatrix4( v, m )

C# Syntax

SIVector3.MulByMatrix4( SIVector3 in_pVector, SIMatrix4 in_pMatrix );

Parameters

Parameter

Type

Description

v

SIVector3

Operand vector

m

SIMatrix4

Operand matrix

Examples

VBScript Example

dim v1, v2, m1
' Create 3D vectors.
set v1 = XSIMath.CreateVector3
set v2 = XSIMath.CreateVector3
' Create 4x4 matrix.
set m1 = XSIMath.CreateMatrix4
v1.Set 1.0, 2.0, 3.0
m1.SetIdentity
v2.MulByMatrix4 v1, m1

See Also

SIVector3.MulByMatrix4InPlace

SIVector3

SIMatrix3

SIMatrix4

SIRotation

SITransformation

SIQuaternion

 



Autodesk Softimage v7.5