Types/BoundingBox: Difference between revisions
Jump to navigation
Jump to search
m ("full" example using left_top and right_bottom) |
m (moved coordinate info down, reworded) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
'''BoundingBox''' is set of two [[Types/Position]]. BoundingBoxes are typically centered around the position of an entity. | '''BoundingBox''' is set of two [[Types/Position]]. BoundingBoxes are typically centered around the position of an entity. | ||
It is specified like this: | It is specified like this: | ||
Line 8: | Line 6: | ||
The first position is assumed to be leftTop, the second position is assumed to be rightBottom. A third member may be added, a [[Types/float]] that represents the orientation, however it does not seem to be used. | The first position is assumed to be leftTop, the second position is assumed to be rightBottom. A third member may be added, a [[Types/float]] that represents the orientation, however it does not seem to be used. | ||
Positive x goes towards east, positive y goes towards south. This means that the upper-left point is the least dimension in x and y, and lower-right is the greatest. | |||
Latest revision as of 15:36, 17 June 2022
BoundingBox is set of two Types/Position. BoundingBoxes are typically centered around the position of an entity.
It is specified like this:
{{-0.4, -0.4}, {0.4, 0.4}}
The first position is assumed to be leftTop, the second position is assumed to be rightBottom. A third member may be added, a Types/float that represents the orientation, however it does not seem to be used.
Positive x goes towards east, positive y goes towards south. This means that the upper-left point is the least dimension in x and y, and lower-right is the greatest.