Class BoundingBoxEnclosed
Object
BoundingBoxEnclosed
Describes a
BoundingBox
that is optionally enclosed by a larger containing BoundingBox
to given padding.
No checks currently occur that enclosing
fully contains box
.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreate with a box that has no padding.BoundingBoxEnclosed
(BoundingBox box, BoundingBox enclosing) Creates a newBoundingBoxEnclosed
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetBox()
TheBoundingBox
in which the image should be placed.An enclosing box (equal to or larger thanbox
covering all screen-space used for this entity, including padding.
-
Constructor Details
-
BoundingBoxEnclosed
Create with a box that has no padding.i.e. this box is enclosed by itself.
- Parameters:
box
- the box.
-
BoundingBoxEnclosed
Creates a newBoundingBoxEnclosed
instance.- Parameters:
box
- TheBoundingBox
in which the image should be placed. This excludes padding.enclosing
- An enclosing box (equal to or larger thanbox
covering all screen-space used for this entity, including padding.This should be identical to
box
if there is no padding.
-
-
Method Details
-
getBox
TheBoundingBox
in which the image should be placed. This excludes padding. -
getEnclosing
An enclosing box (equal to or larger thanbox
covering all screen-space used for this entity, including padding.This should be identical to
box
if there is no padding.
-