v4.2

Fill area. More...

Public Member Functions

 FillArea (Curve2D outerBoundary, table oInnerBoundaries)
 Constructor.
self Shift (number x, number y)
 Shifts the fill area by the specified values ​​along the coordinate axes.
self Shift (Vector2D vector)
 Shifts the fill area by vector.
self Rotate (Point2D point, number angle)
 Rotates the fill area.
self Scale (Point2D point, number xScale, number yScale)
 Scales the fill area relative to a fixed point.
self Transform (Matrix2D matrix)
 Transforms according to the matrix.
FillArea Clone ()
 Returns a copy of the fill area.
table GetInnerBoundaries ()
 Returns the inner boundaries.
Curve2D GetOuterBoundary ()
 Returns the outer boundary.
boolean operator== (FillArea other)
 Checks for equality.
boolean operator~= (FillArea other)
 Checks for inequality.

Detailed Description

Fill area.

The fill area is a closed two-dimensional space, which is bounded by one or more curves. The boundaries of fill area can't intersect themselves, but may touch each other.

Constructor & Destructor Documentation

◆ FillArea()

FillArea ( Curve2D outerBoundary,
table oInnerBoundaries )

Constructor.

Parameters
outerBoundaryThe outer boundary of the fill area.
oInnerBoundaries[opt] The set of curves, describing inner boundaries of fill area.

Member Function Documentation

◆ Rotate()

self Rotate ( Point2D point,
number angle )

Rotates the fill area.

Parameters
pointCenter of rotation.
angleThe angle in radians.

◆ Shift()

self Shift ( Vector2D vector)

Shifts the fill area by vector.

Since
v4.2