SMC_CoordinateTransformation3D (FB)

 

FUNCTION_BLOCK SMC_CoordinateTransformation3D

This function block will calculate the coordinates of a point given in respect of the new coordinate system and transformed to the old coordi­nate system. For this purpose, the coordinate transformation is defined by the translation of the origin and the new unit vectors (given in respect of the old coordinate system).

For detailed information of transformation modules see the survey on Coordinate Transformations.

InOut:

Scope

Name

Type

Comment

Input

piIn

SMC_PosInfo

Point in new coordinates

vX

SMC_Vector3D

Unit vector of new coordinate system

vY

SMC_Vector3D

Unit vector of new coordinate system

vZ

SMC_Vector3D

Unit vector of new coordinate system

vTranslation

SMC_Vector3D

Translation vector for origin = origin of new coordinate system in old coordinates

Output

piOut

SMC_PosInfo

Point in old coordinates