Current Help System: Tutor Translator (View Core Help)

### Iskew - Theoretical Rotation

ISKEW (ROT, 30, Z, 3, 2) translates to è

A9 =ALIGNMENT/START,RECALL:E.ALIGNMENTS[2], LIST= YES

ALIGNMENT/ROTATE_OFFSET,30,ABOUT,ZPLUS
ALIGNMENT/END
ASSIGN/E.CUR_ALIGN =3
ASSIGN/E.ALIGNMENTS[E.CUR_ALIGN] = "A9"

ISKEW (ROT, 30, Z, 4) translates to è

A10 =ALIGNMENT/START,RECALL:E.ALIGNMENTS[E.CUR_ALIGN], LIST= YES

ALIGNMENT/ROTATE_OFFSET,30,ABOUT,ZPLUS
ASSIGN/E.CUR_ALIGN =4
ASSIGN/E.ALIGNMENTS[E.CUR_ALIGN] = "A10"

In PC-DMIS the theoretical rotation by offset does not exist so it is necessary to calculate the rotation angle. For this reason the function E.OFF3ROT is defined:
ASSIGN/E.OFF2ROT = FUNCTION((X,Y),IF(X==0,IF(Y>0,90,-90),E.RAD2DEG(ATAN(X/Y))))

ISKEW (OFS, OFF1,OFF2, Z, 5, 4) translates to è

A11 =ALIGNMENT/START,RECALL:E.ALIGNMENTS[4], LIST= YES

ALIGNMENT/ROTATE_OFFSET,-E.OFF2ROT(OFF1,OFF2),ABOUT,ZPLUS
ALIGNMENT/END
ASSIGN/E.CUR_ALIGN =5
ASSIGN/E.ALIGNMENTS[E.CUR_ALIGN] = "A11"

ISKEW (OFS, OFF1,OFF2, Z, 6)
ISKEW (OFF1,OFF2, Z, 6) translates to è

A12 =ALIGNMENT/START,RECALL:E.ALIGNMENTS[E.CUR_ALIGN], LIST= YES

ALIGNMENT/ROTATE_OFFSET,-E.OFF2ROT(OFF1,OFF2),ABOUT,ZPLUS&
ALIGNMENT/END
ASSIGN/E.CUR_ALIGN =6
ASSIGN/E.ALIGNMENTS[E.CUR_ALIGN] = "A12"