Skip to content

Function: rotatedBoxExit() ​

ts
function rotatedBoxExit(b, from, d): number;

Experimental

Where a ray from from in direction d (unit) leaves the box: the parameter of the exit point, or 0 when from is outside the box.

Parameters ​

ParameterType
bRotatedBox
fromScreenPoint2D
dScreenPoint2D

Returns ​

number

Released under the MIT License.