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

pcGetStepDirection

pcGetStepDirection(
l_pointList
) 
=> t_stepDirection / nil

Description

Returns the direction from the first point in the list to the second point in the list.

Arguments

l_pointList

List of coordinates in either of the following formats:

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

Value Returned

t_stepDirection

String stating the direction of the step.

Valid Values: "up", "down", "right", "left"

nil

The direction from the first point in the list to the second point in the list is neither vertical nor horizontal.

Examples

pcGetStepDirection( '( 0 0 ) '( 1 0 ) )
=> "right"

Returns the direction from point 0:0 to point 1:0.


Return to top
 ⠀
X