Skip to main content

continuous_segment3_capsule3

Function continuous_segment3_capsule3 

Source
pub fn continuous_segment3_capsule3<S: Real>(
    segment: Segment3<S>,
    capsule: Capsule3<S>,
) -> Option<(Segment3Point<S>, Segment3Point<S>)>
Expand description

Compute continuous intersection of a line segment with an axis-aligned capsule.

The points are returned in the order given by the ordering of the points in the segment.

Note that a line that is tangent to the surface of the capsule returns no intersection.