back to Table of Contents


RotPointX & RotPointY (function)

These two functions are used to rotate a given point from its current position around a defined center in any given angle.


SYNTAX:

xRot% = RotPointX% (xPos%, yPos%, ang!, xCen%, yCen%)
yRot% = RotPointY% (xPos%, yPos%, ang!, xCen%, yCen%)

INPUTS:

xPos%, yPos% (INTEGERs)

ang! (SINGLE)

xCen%, yCen% (INTEGERs)


RESULT:

xRot% (INTEGER)

yRot% (INTEGER)


back to Table of Contents