PolyStuff library

File:
PolyStuff.lib
Version:
1.1
Author:
Marcus Johansson and John Master

Contents

Details
Sub routines


Details

A library for transforming and drawing polygons created with Poly Editor.


Subroutines

Name
Parameters
Brief description
procedure
ClearTransformation
Clear transformation matrix.
procedure
Translate
dx#, dy#
Translate.
procedure
Scale
sx#, sy#
Scale.
procedure
Rotate
a#
Rotate.
procedure
PushTransformation
Push transformation.
procedure
PopTransformation
Pop transformation.
function
LoadPolygon#[][]
filename$
Load polygon created with Polygon Editor.
procedure
TransformPolygon
&p#[][]
Transform polygon with the current transformation.
procedure
DrawPolygon
&p#[][], filled
Draw polygon using current transformation.


Subroutine documentation

procedure ClearTransformation ( )

Clear transformation matrix.

[ Back ]


procedure Translate ( dx#, dy# )

Translate.

Parameter
Mode
Description
dx
In
X translation.
dy
In
Y translation.

[ Back ]


procedure Scale ( sx#, sy# )

Scale.

Parameter
Mode
Description
sx
In
X scale factor.
sy
In
Y scale factor.

[ Back ]


procedure Rotate ( a# )

Rotate.

Parameter
Mode
Description
a
In
Angle.

[ Back ]


procedure PushTransformation ( )

Push transformation.

[ Back ]


procedure PopTransformation ( )

Pop transformation.

[ Back ]


function LoadPolygon#[][] ( filename$ )

Load polygon created with Polygon Editor.

Parameter
Mode
Description
filename
In
Filename.

Return value
Polygon as float array.

[ Back ]


procedure TransformPolygon ( &p#[][] )

Transform polygon with the current transformation.

Parameter
Mode
Description
p
In
Polygon.

[ Back ]


procedure DrawPolygon ( &p#[][], filled )

Draw polygon using current transformation.

Parameter
Mode
Description
p
In
Polygon.
filled
In
True for a filled polygon.

[ Back ]


Generated with NLDoc 20140630.