Rotation Transformation Translation Transformation navigation bar

Table of Contents

Scale Transformation

This block multiplies a homogeneous transformation matrix by a scaling matrix. The block can be configured to have either a fixed or variable scale.

Library

QUARC Targets/Math Operations/Homogeneous Transformations

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/Homogeneous Transformations')

Description

Scale Transformation

This block multiplies an input homogeneous transformation matrix by a scaling matrix. The block can be configured to have either a fixed or variable scaling by double clicking on the block and setting the appropriate parameters. The homogeneous translation matrix is as follows:

  output = [x 0 0 0
            0 y 0 0
            0 0 z 0
            0 0 0 1];
        

where x, y, and z are the scale along the axes of the current frame. The input homogeneous transformation matrix is post-multiplied by this matrix.

Input Ports

4x4

This input takes the previous output from a homogeneous transformation block. If there are no prior transformation blocks then this input must be driven by a Identity Transformation block.

vec

If the block is configured to drive the scale externally, then this port will be visible. The input should be a 3 element vector defining the scaling along the axes of the current frame.

Output Ports

4x4

Outputs a 4x4 tranformation matrix.

Parameters and Dialog Box

Scale Transformation

Source of scale vector

Selects between internal and external sources for the scaling vector. If internal is selected, set the vector in the Scale field. If external is selected, you can connect a 3 element vector to the input port.

Scale

Sets the scaling to the fixed value entered in this field if the Source of scale vector is set to use the internal input.

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.

See Also

 

navigation bar