Function cavalier_contours::polyline::seg_fast_approx_bounding_box
source · pub fn seg_fast_approx_bounding_box<T>(
v1: PlineVertex<T>,
v2: PlineVertex<T>
) -> AABB<T>where
T: Real,
Expand description
Computes a fast approximate axis aligned bounding box of a polyline segment defined by v1
to v2
.
The bounding box may be larger than the true bounding box for the segment (but is never smaller). For the true axis aligned bounding box use seg_bounding_box but this function is faster for arc segments.