Skip to main content

aabb2_force_into_container

Functions

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

ParamType
subject_v0number
subject_v1number
bounds_v0number
bounds_v1number

aabb2_force_into_container(container, box)

Kind: global function

ParamType
containerAABB2
boxAABB2