Sets this rotation according to the axis and angle parameters.
SIRotation.SetFromAxisAngle( SIVector3 in_pAxis, Double in_dAngle ); |
SIRotation.SetFromAxisAngle( axis, angle ); |
Parameter | Type | Description |
---|---|---|
axis | SIVector3 | Axis of rotation |
angle | Floating point value | Angle of rotation (in radians) |
dim r1, axis ' Create rotation. set r1 = XSIMath.CreateRotation ' Create 3D vector. set axis = XSIMath.CreateVector3(1.0, 0.0, 0.0) r1.SetFromAxisAngle axis, 1.5 |