Function: orthoFrustum()
ts
function orthoFrustum(rect, area): object;Experimental
Orthographic frustum for a 2D viewport whose world origin is the bottom-left of rect (1 unit = 1 CSS px) while GL draws into area (both top-left-origin container rects).
Parameters
| Parameter | Type |
|---|---|
rect | Readonly<ViewportRect> |
area | Readonly<ViewportRect> |
Returns
object
| Name | Type |
|---|---|
bottom | number |
left | number |
right | number |
top | number |