Product Documentation
Virtuoso Parameterized Cell SKILL Reference
Product Version IC23.1, August 2023

pcGrowBox

pcGrowBox(
l_pointList
xf_margin
) 
=> l_incrementedPointList / nil

Description

Increase or decrease the size of the specified box by the specified margin. The system adds xf_margin to each coordinate in the list and returns a list of the coordinates of the resulting box.

Arguments

l_pointList

List of coordinates defining the original rectangular box, in either of the following formats:

'( ( x1 y1 ) ( x2 y2 ) )
( x1:y1  x2:y2 )

xf_margin

Positive or negative integer or floating-point number used to increment or decrement the points of the original box.

Valid Values: integer or floating-point number

Value Returned

l_incrementedPointList

  

List of coordinates defining the incremented box, in either of the following formats:

'( ( x1 y1 ) ( x2 y2 ) )
( x1:y1  x2:y2 )

nil

The function did not complete successfully.

Examples

pcGrowBox( '( 0:0 2:2 ) 5.5 ) 
    =>((-5.5 -5.5) 
        (7.5 7.5) )

Increments the two points of the original box by 5.5 and returns a list of the points defining the incremented box.


Return to top
 ⠀
X