AGX Dynamics  2.37.3.2
agxCollide::LineSegmentIntersectionFinder Class Reference

#include <LineSegmentIntersectionFinder.h>

Static Public Member Functions

static bool calculateLineSegmentCollision (const agxGeometryQueries::SweptLineSegment &sweptSegment0, const agxGeometryQueries::SweptLineSegment &sweptSegment1, agx::Real &t, agx::Interval &lineParameters0, agx::Interval &lineParameters1, agx::StackArray< agx::Vec3, 2 > &points, agx::Vec3 &normal, agx::Real &distance)
 

Detailed Description

Definition at line 202 of file LineSegmentIntersectionFinder.h.

Member Function Documentation

◆ calculateLineSegmentCollision()

static bool agxCollide::LineSegmentIntersectionFinder::calculateLineSegmentCollision ( const agxGeometryQueries::SweptLineSegment &  sweptSegment0,
const agxGeometryQueries::SweptLineSegment &  sweptSegment1,
agx::Real &  t,
agx::Interval &  lineParameters0,
agx::Interval &  lineParameters1,
agx::StackArray< agx::Vec3, 2 > &  points,
agx::Vec3 &  normal,
agx::Real &  distance 
)
static
Parameters
sweptSegment0The first line segment (swept over time).
sweptSegment1The second line segment (swept over time).
tOutput value - found overlap time.
lineParameters0Output value - interval along line parameters for segment0 which overlaps with segment1 at time t.
lineParameters1Output value - interval along line parameters for segment1 which overlaps with segment0 at time t.
pointsOutput value - The contact points from the given time t, transferred to time 1.
normalOutput value - The contact normal from the given time t, transferred to time 1.
distanceOutput value - The distance that the points from lineParameter0 and lineParameter1 moved from each other between times t and 1.
Return values
Wasa collision found? All output value are only valid if method returns true.

The documentation for this class was generated from the following file: