Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

centerBox

centerBox( 
l_bBox 
)
=> l_point / nil

Description

Returns the center point of the given bounding box. The bounding box is not validated and is assumed to be correct.

Arguments

l_bBox

A list representing a bounding box.

Value Returned

l_point

A list representing the center point of the bounding box.

nil

The bounding box is not valid.

Examples

centerBox( list( 0:0 9:9 ) ) => ( 4 4 )
centerBox( list(0.0:0.0 9.0:9.0 ) ) => ( 4.5 4.5 )

Related Topics

Database Access Function Argument Types

Bounding Box Functions


Return to top
 ⠀
X