This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Shapes_CalcRotateZoomPos | |
' Shapes | calculate position for rotated and zoomed shape | |
' param["x"], param["y"] - position of a shape | |
' param["width"], param["height"] - size of a shape | |
' param ["cx"], param["cy"] - center of rotation | |
' param ["angle"] - rotate angle | |
' param ["scale"] - resize scale | |
' return x, y - rotated position of a shape | |
_cx = param["x"] + param["width"] / 2 | |
_cy = param["y"] + param["height"] / 2 |