Vector to Skew Symmetric Matrix End of trail navigation bar

Table of Contents

Vector Rotation

Rotates the input 3-vector by the given angle about an arbitrary axis.

Library

QUARC Targets/Math Operations/Vectors

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

qc_open_library('quarc_library/Math Operations/Vectors')

Description

Vector Rotation

The Vector Rotation block rotates the input vector about an arbitrary axis. Both the angle of rotation and the axis of rotation may be specified as a block parameter or as an external input.

Input Ports

v

The 3-vector in cartesian coordinates to be rotated.

theta

The angle in radians by which to rotate the input vector.

k

The axis of rotation as a 3-vector.

Output Ports

y

The output is the 3-vector after rotation about the specified axis.

Data Type Support

This block accepts inputs of type double. The block output is of type double.

Parameters and Dialog Box

Vector Rotation

Source of angle to rotate

Determines whether the angle of rotation is specified as a dialog parameter or is provided by an external input. Select "Specify via dialog" to enter the angle of rotation as a dialog parameter. Select "Use external input" to get an additional input port at which the angle of rotation may be supplied.

Angle to rotate (rads)

The angle through which to rotate the input vector, in radians. This parameter is only used if the Source of angle to rotate parameter is set to "Specify via dialog".

Source of axis of rotation

Determines whether the axis of rotation is specified as a dialog parameter or is provided by an external input. Select "Specify via dialog" to enter the axis of rotation as a dialog parameter. Select "Use external input" to get an additional input port at which the axis of rotation may be supplied as a 3-vector.

Axis of rotation (3-vector)

A 3-vector specifying the axis of rotation about which to rotate the input vector. This parameter is only used if the Source of axis of rotation parameter is set to "Specify via dialog".

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

Yes

Yes

Last fully supported in QUARC 2018.

Rapid Simulation (RSIM) Target

Yes

Yes

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar