v2.0
 
FillArea Class Reference

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 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.