Module bbox
¶
The bbox`
module contains the definition of the bbox
class representing
bounding boxes of graphical elements like paths, canvases, etc. used in PyX.
Usually, you obtain bbox
instances as return values of the corresponding
bbox())
method, but you may also construct a bounding box by yourself.
bbox
constructor¶
The bbox
constructor accepts the following keyword arguments
keyword |
description |
---|---|
|
|
|
|
|
|
|
|
bbox
methods¶
|
function |
---|---|
|
returns |
|
returns |
|
return the bounding box enlarged by the given
amount (in visual units). |
|
return the |
|
returns the height of the bounding box (in PyX lengths). |
|
returns the width of the bounding box (in PyX lengths). |
|
returns the \(y\)-position of the top of the bounding box (in PyX lengths). |
|
returns the \(y\)-position of the bottom of the bounding box (in PyX lengths). |
|
returns the \(x\)-position of the left side of the bounding box (in PyX lengths). |
|
returns the \(x\)-position of the right side of the bounding box (in PyX lengths). |
Furthermore, two bounding boxes can be added (giving the bounding box enclosing both) and multiplied (giving the intersection of both bounding boxes).