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 newBoundingBoxEnclosedinstance. -
Method Summary
Modifier and TypeMethodDescriptiongetBox()TheBoundingBoxin which the image should be placed.An enclosing box (equal to or larger thanboxcovering 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 newBoundingBoxEnclosedinstance.- Parameters:
box- TheBoundingBoxin which the image should be placed. This excludes padding.enclosing- An enclosing box (equal to or larger thanboxcovering all screen-space used for this entity, including padding.This should be identical to
boxif there is no padding.
-
-
Method Details
-
getBox
TheBoundingBoxin which the image should be placed. This excludes padding. -
getEnclosing
An enclosing box (equal to or larger thanboxcovering all screen-space used for this entity, including padding.This should be identical to
boxif there is no padding.
-