Zum Hauptinhalt springen

BoundingBox#extendMargin.

· Eine Minute Lesezeit

Beginning with the (now releases) Version the Method BoundingBox#extendMargin of VTM was corrected in its behavior.

From now on, it exposes three overloads:

BoundingBox extendMargin(float margin) 
BoundingBox extendMargin(float marginX, float marginY) 
BoundingBox extendMargin(float marginLeft, float marginRight, float marginTop, float marginBottom)

for a better and more dynamic usage of this feature.

Also the value margin was changed from maximum randomness in behavior (it was a factor that was somehow based on the original boundingbox, but not really undestandable) to percent. So extendMargin(50) will extend the original BoundingBox by 50% of its original size into all directions.

Also it now accepts negative values to shrink the orignal Box.

For further details click here.