aabb2_force_into_container
Functions
-
interval_force_into_bounds(subject_v0, subject_v1, bounds_v0, bounds_v1) ⇒
number - aabb2_force_into_container(container, box)
interval_force_into_bounds(subject_v0, subject_v1, bounds_v0, bounds_v1) ⇒ number
Kind: global function
Returns: number - displacement for subject to fit into bounds
| Param | Type |
|---|---|
| subject_v0 | number |
| subject_v1 | number |
| bounds_v0 | number |
| bounds_v1 | number |
aabb2_force_into_container(container, box)
Kind: global function
| Param | Type |
|---|---|
| container | AABB2 |
| box | AABB2 |