入力ベクトル(v2)を入力ベクトル(v1)から引き、結果をこのベクトルに格納します(this = v1 - v2)。
SIVector3.Sub( SIVector3 in_pVector1, SIVector3 in_pVector2 ); |
SIVector3.Sub( v1, v2 ); |
dim v1, v2, v3 ' Create 3D vectors. set v1 = XSIMath.CreateVector3(1.0, 2.0, 3.0) set v2 = XSIMath.CreateVector3(4.0, 5.0, 6.0) set v3 = XSIMath.CreateVector3 'v3 = v1 - v2 v3.Sub v1, v2 |