Vizard 7 » Command Index » Vizard objects » link » <link>.swapEuler
7.6

<link>.swapEuler

Create operator that swaps euler coordinates

<link>.swapEuler(  
[yaw,pitch,roll]  
priority = 0  
target = viz.LINK_FULL_OP  
)  
[yaw,pitch,roll]
The swap indices
priority = 0
Priority of operator
target = viz.LINK_FULL_OP
One of the following values:

Link operator targets

viz.LINK_FULL_OP

The operator will be applied to combined data of the link.

viz.LINK_POS_OP

The operator will be applied to position data of the link.

viz.LINK_ORI_OP

The operator will be applied to orientation data of the link.

Remarks

This command will create an operator that will swap the euler coordinates of the incoming matrix based on the specified swap indices. The indices are 1-based, so 1 refers to the yaw, 2 is pitch, and 3 is roll. Negative indices will negate the incoming value.

Return Value

Operator object

Example

link = viz.link(src,dst)

#Negate yaw value
link.swapEuler([-1,2,3])

See also

<link>.swapPos
<link>.swapQuat