SIVector3.MulByMatrix4

SIVector3.MulByMatrix4

説明

ベクトル v に行列 m を右から掛け、結果をこのベクトルに格納します:this = v。m )

C#構文

SIVector3.MulByMatrix4( SIVector3 in_pVector, SIMatrix4 in_pMatrix );

スクリプト構文

SIVector3.MulByMatrix4( v, m );

パラメータ

パラメータ タイプ 説明
v SIVector3 オペランドベクトル
m SIMatrix4 オペランド行列

VBScript の例

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

関連項目

SIVector3.MulByMatrix4InPlace SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion