Utility functions for extent boxes, which are represented as a list of two vectors (the min and max of the box).
pwu:: | Utility functions for extent boxes, which are represented as a list of two vectors (the min and max of the box). |
Static Actions | |
empty | Create an empty extents box |
minimum | Get the minimum point of an extents box |
maximum | Get the maximum point of an extents box |
center | Get the center point of an extents box |
minimumSide | Get the length of the minimum side of an extents box |
maximumSide | Get the length of the maximum side of an extents box |
isEmpty | Check if an extents box is empty |
diagonal | Get the length of the diagonal of an extents box |
enclose | Return an extents box that is the target extents with the given point or extents box enclosed within it |
expand | Return an extents box that is the target extents expanded by the given amount at both minimum and maximum |
isIntersecting | Return true if two given extents boxes intersect |
isInside | Return true if a point lies within the extents |
translate | Translate the given extents box by an offset |
rotate | Rotate the given extents box by a quaternion |
Create an empty extents box
pwu::Extents empty
Get the minimum point of an extents box
pwu::Extents minimum ext
Get the maximum point of an extents box
pwu::Extents maximum ext
Get the center point of an extents box
pwu::Extents center ext
Get the length of the minimum side of an extents box
pwu::Extents minimumSide ext
Get the length of the maximum side of an extents box
pwu::Extents maximumSide ext
Check if an extents box is empty
pwu::Extents isEmpty ext
Get the length of the diagonal of an extents box
pwu::Extents diagonal ext
Return an extents box that is the target extents with the given point or extents box enclosed within it
pwu::Extents enclose target < pt | ext >
Return an extents box that is the target extents expanded by the given amount at both minimum and maximum
pwu::Extents expand ext value
Return true if two given extents boxes intersect
pwu::Extents isIntersecting ext1 ext2
Return true if a point lies within the extents
pwu::Extents isInside ext pt
Translate the given extents box by an offset
pwu::Extents translate ext offset
Rotate the given extents box by a quaternion
pwu::Extents rotate ext quat