Vizard 7 » Command Index » Vizard objects » viewpoint » <viewpoint>.setAxisAngle
7.6

<viewpoint>.setAxisAngle

Rotate the view according to axis angle parameters

<viewpoint>.setAxisAngle(  
[x,y,z,deg]  
mask = viz.HEAD_ORI # Positional argument
mode = viz.ABS_PARENT # Positional argument
)  
[x,y,z,deg]
Axis-angle rotation
mask = viz.HEAD_ORI
This tells which transform to apply the rotation to. This can be either viz.HEAD_ORI or viz.BODY_ORI
mode = viz.ABS_PARENT
Can be one of the following:

Transform modes

viz.ABS_PARENT
viz.ABS_GLOBAL

Perform the transformation absolutely in world coordinates.

viz.REL_LOCAL
viz.ABS_LOCAL

Perform the transformation relative to the local coordinate system.

viz.REL_PARENT
viz.REL_GLOBAL

Perform the transformation relatively in world coordinates.

Remarks

Use this fucntion to rotate a viewpoint.

Return Value

None

See also

<viewpoint>.setEuler
<viewpoint>.setMatrix
<viewpoint>.setQuat