Calculate the bounding box of a region.
(xmin, ymin, xmax, ymax) = regExtent( Region_Type Region )
where xmin, ymin, xmax, and ymax are all Double_Type
The regExtent routine returns the bounding box of a region. It is primarily useful if you wish to use the six-argument form of regArea().
chips> require("region")
chips> reg = regParse("circle(10,10,4)-rect(4,2,5,4)")
chips> (x0,y0,x1,y1) = regExtent( reg )
chips> vmessage( "Bounding box is (%.1f,%.1f) to (%.1f,%.1f)", x0, y0,
x1, y1 )
Bounding box is (6.0,6.0) to (14.0,14.0)
This function is new to CIAO 3.2.
|