Right-multiplies the vector v by the rotation r and stores the result in this vector: this = v . r
SIVector3.MulByRotation( SIVector3 in_pVector, SIRotation in_pRotation ); |
SIVector3.MulByRotation( v, r ); |
Parameter | Type | Description |
---|---|---|
v | SIVector3 | Operand vector |
r | SIRotation | Operand rotation |
dim v1, v2, rotAngles, r1 ' Create 3D vectors. set v1 = XSIMath.CreateVector3 set v2 = XSIMath.CreateVector3 set rotAngles = XSIMath.CreateVector3 ' Create Rotation. set r1 = XSIMath.CreateRotation v1.Set 1.0, 0.0, 0.0 rotAngles.Set 0.0, 0.0, 0.7853981633974483 r1.SetFromXYZAngles rotAngles v2.MulByRotation v1, r1 |