Expand description
This crate provides utilities for performing collision queries between rectangles and rays,
including swept checks for moving rectangles. It leverages fixed-point arithmetic provided by the fixed32
crate to
handle the computations.
Modules§
Structs§
Functions§
- ray_
vs_ rect - Performs a ray-rectangle intersection test.
- ray_
vs_ rect_ horizontal_ time - Computes the intersection time of a horizontal ray with a target rectangle.
- ray_
vs_ rect_ vertical_ time - Computes the intersection time of a vertical ray with a target rectangle.
- swept_
rect_ vs_ rect - Checks for intersection between a swept rectangle and a target rectangle.
- swept_
rect_ vs_ rect_ horizontal_ time - Checks for intersection between a swept rectangle and a target rectangle along the horizontal axis.
- swept_
rect_ vs_ rect_ vertical_ time - Checks for intersection between a vertically swept rectangle and a target rectangle.