Quaternion Product Quaternion to Angle and Axis navigation bar

Table of Contents

Quaternion from Angle and Axis

Creates a quaternion from an axis/angle representation.

Library

QUARC Targets/Math Operations/Quaternions

Description

Quaternion from Angle and Axis

The Quaternion from Angle and Axis block creates a quaternion from an axis/angle representation. The angle must be in radians. The axis should be a unit vector.

Input Ports

ang

This input is the angle of rotation about the given axis, in radians.

vec

This input is the axis of rotation as a 3-vector.

Output Ports

y

The output is the quaternion representing a rotation of ang about the axis vec.

Data Type Support

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

Parameters and Dialog Box

Quaternion from Angle and Axis

The Quaternion from Angle and Axis block has no parameters.

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