Base template for all AABB-types.
type | all values get stored as this type |
Holds the internal type of the AABB.
Convenience alias to the corresponding vector type.
The minimum of the AABB (e.g. vec3(0, 0, 0)).
The maximum of the AABB (e.g. vec3(1, 1, 1)).
Constructs the AABB.
vec3 min | minimum of the AABB |
vec3 max | maximum of the AABB |
Constructs the AABB around N points (all points will be part of the AABB).
Expands the AABB by another AABB.
Expands the AABB, so that v is part of the AABB.
Returns true if the AABBs intersect. This also returns true if one AABB lies inside another.
Returns the extent of the AABB (also sometimes called size).
Returns the half extent.
Returns the area of the AABB.
Returns the center of the AABB.
Returns all vertices of the AABB, basically one vec3 per corner.