position_box_next_to_box
Functions
- computeInitialPlacement(box, target, bounds) ⇒
Vector2
- position_box_next_to_box(box, target, bounds) ⇒
AABB2
computeInitialPlacement(box, target, bounds) ⇒ Vector2
Kind: global function
Param | Type |
---|---|
box | AABB2 |
target | AABB2 |
bounds | AABB2 |
- computeInitialPlacement(box, target, bounds) ⇒
Vector2
- ~preferredDirections :
Array.<Vector2>
- ~computePlacementScore(placement) ⇒
number
- ~preferredDirections :
computeInitialPlacement~preferredDirections : Array.<Vector2>
list of preferred directions, ordered. First direction is higher priority than the next, last is lowest priority
Kind: inner constant of computeInitialPlacement
computeInitialPlacement~computePlacementScore(placement) ⇒ number
Kind: inner method of computeInitialPlacement
Param | Type |
---|---|
placement | Vector2 |
position_box_next_to_box(box, target, bounds) ⇒ AABB2
Kind: global function
Returns: AABB2
- input box parameter
Param | Type |
---|---|
box | AABB2 |
target | AABB2 |
bounds | AABB2 |