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

pcGetBendAngle

pcGetBendAngle(
l_pointList
) 
=> x_signedDegrees / nil

Description

Determines whether the specified list of three coordinates represents a bend to the left (+90 degrees) or to the right (-90 degrees). The three coordinates must define a 90 degree angle.

Arguments

l_pointList

List of three coordinates in one of the following formats:

list( '( x1 y1 ) '( x2 y2 ) '( x3 y3 ) )
'( x1:y1 x2:y2 x3:y3 )

Value Returned

x_signedDegrees

Returns the positive number 90 when the three coordinates represent a bend to the left; returns the number -90 when the three coordinates represent a bend to the right.

nil

Returned if the three coordinates do not represent a bend to the right or to the left, or if the function did not complete successfully.

Examples

pcGetBendAngle( 0:1 1:0 1:1 ) => 90

The three coordinates represent a bend to the left.


Return to top
 ⠀
X