Home Search

DriveWorks Pro 22
PolygonRotate

Send Feedback

PolygonRotate

Returns a copy of the given polygon rotated around its local origin.

This function is intended to be used with the DriveWorks 3D Extrusion entity.

Syntax

PolygonRotate(Polygon,Angle)

Where:

Polygon: The polygon to rotate.

Angle: The number of degrees to rotate by.

Examples

Example 1

Rule (Fill Paths)

PolygonRotate(PolygonCreateBox(0,0,100,100),45)

Result

{"0|0","70.71068|70.71068","0|141.4214","-70.71068|70.71068"}

The given box polygon is rotated 45 degrees.