Module bounding

Source
Expand description

This module contains traits and implements for working with bounding shapes

There are four traits used:

Structs§

Aabb2d
A 2D axis-aligned bounding box, or bounding rectangle
Aabb3d
A 3D axis-aligned bounding box
AabbCast2d
An intersection test that casts an Aabb2d along a ray.
AabbCast3d
An intersection test that casts an Aabb3d along a ray.
BoundingCircle
A bounding circle
BoundingCircleCast
An intersection test that casts a BoundingCircle along a ray.
BoundingSphere
A bounding sphere
BoundingSphereCast
An intersection test that casts a BoundingSphere along a ray.
RayCast2d
A raycast intersection test for 2D bounding volumes
RayCast3d
A raycast intersection test for 3D bounding volumes

Traits§

Bounded2d
A trait with methods that return 2D bounding volumes for a shape.
Bounded3d
A trait with methods that return 3D bounding volumes for a shape.
BoundedExtrusion
A trait implemented on 2D shapes which determines the 3D bounding volumes of their extrusions.
BoundingVolume
A trait that generalizes different bounding volumes. Bounding volumes are simplified shapes that are used to get simpler ways to check for overlapping elements or finding intersections.
IntersectsVolume
A trait that generalizes intersection tests against a volume. Intersection tests can be used for a variety of tasks, for example: