aabb3_detailed_volume_intersection
Constants
-
scratch_aabb_corners :
Array.<number> -
scratch_aabb_planes :
Array.<number> -
scratch_corner_out_bitfields :
Array.<number> -
scratch_v3_array :
Array.<number>
Functions
Figures out intersection volume between an AABB and a frustum for much tighter bounds
Especially beneficial when trying to intersect a large AABB against a small frustum, where where traditionally only AABB corners would be considered, we're instead able to compute minimum bounds of the overlap of the two
scratch_aabb_corners : Array.<number>
Kind: global constant
scratch_aabb_planes : Array.<number>
Kind: global constant
scratch_corner_out_bitfields : Array.<number>
Kind: global constant
scratch_v3_array : Array.<number>
Kind: global constant
aabb3_detailed_volume_intersection(destination, destination_offset, x0, y0, z0, x1, y1, z1, planes, plane_mask, plane_count) ⇒ number
Figures out intersection volume between an AABB and a frustum for much tighter bounds
Especially beneficial when trying to intersect a large AABB against a small frustum, where where traditionally only AABB corners would be considered, we're instead able to compute minimum bounds of the overlap of the two
Kind: global function
| Param | Type |
|---|---|
| destination | Array.<number> |
| destination_offset | number |
| x0 | number |
| y0 | number |
| z0 | number |
| x1 | number |
| y1 | number |
| z1 | number |
| planes | Array.<number> |
| plane_mask | number |
| plane_count | number |
- aabb3_detailed_volume_intersection(destination, destination_offset, x0, y0, z0, x1, y1, z1, planes, plane_mask, plane_count) ⇒
number- ~outside_corner_mask :
number - ~intersecting_edge_mask :
number - ~corner_plane_out_bitfield :
number
- ~outside_corner_mask :
aabb3_detailed_volume_intersection~outside_corner_mask : number
Bitfield marking which corners are outside of the frustum
Kind: inner property of aabb3_detailed_volume_intersection
aabb3_detailed_volume_intersection~intersecting_edge_mask : number
Bitfield marking edges that are attached to outside corners
Kind: inner property of aabb3_detailed_volume_intersection
aabb3_detailed_volume_intersection~corner_plane_out_bitfield : number
Bitfield to outside of which planes a particular corner lies
Kind: inner property of aabb3_detailed_volume_intersection