AGX Dynamics  2.35.0.1
agxCollide::agxGeometryQueries::SweptLineSegment Class Reference

A line segment that is swept in time from t=0 to t=1. More...

#include <LineSegmentIntersectionFinder.h>

Public Member Functions

 SweptLineSegment ()
 Creates a SweptLineSegment, with both line segments degenaring to points at the origin. More...
 
 SweptLineSegment (const LineSegment &start, const LineSegment &end)
 The SweptLineSegment constructor. More...
 
agx::Vec3 computeSweepDirectionPoint0 () const
 Returns the non-normalized sweep direction of point0 over time. More...
 
agx::Vec3 computeSweepDirectionPoint1 () const
 Returns the non-normalized sweep direction of point1 over time. More...
 
LineSegment computeSweepSegmentPoint0 () const
 Returns the line segment point0 over time. More...
 
LineSegment computeSweepSegmentPoint1 () const
 Returns the line segment point1 over time. More...
 
LineSegment evaluateAt (const agx::Real time) const
 Evaluates the swept line at a given time. More...
 
agx::Vec3 evaluateAt (const agx::Real time, const agx::Real lineParameter) const
 Evaluates the swept line at a given time and line parameter and returns a point. More...
 
bool isDegeneratedToLine () const
 Is the swept line segment degenerated to a line? More...
 
bool isDegeneratedToPoint () const
 Is the swept line segment degenerated to a point? More...
 
LineSegment & segment0 ()
 Gets the swept line segment's first line segment, i.e. at t=0. More...
 
const LineSegment & segment0 () const
 Gets the swept line segment's first line segment, i.e. at t=0. More...
 
LineSegment & segment1 ()
 Gets the swept line segment's second line segment, i.e. at t=1. More...
 
const LineSegment & segment1 () const
 Gets the swept line segment's second line segment, i.e. at t=1. More...
 

Detailed Description

A line segment that is swept in time from t=0 to t=1.

All sweeping is done by linear interpolation.

Definition at line 135 of file LineSegmentIntersectionFinder.h.

Constructor & Destructor Documentation

◆ SweptLineSegment() [1/2]

agxCollide::agxGeometryQueries::SweptLineSegment::SweptLineSegment ( )

Creates a SweptLineSegment, with both line segments degenaring to points at the origin.

Definition at line 375 of file LineSegmentIntersectionFinder.h.

◆ SweptLineSegment() [2/2]

agxCollide::agxGeometryQueries::SweptLineSegment::SweptLineSegment ( const LineSegment &  start,
const LineSegment &  end 
)

The SweptLineSegment constructor.

Parameters
startThe segment at t=0.
endThe segment at t=1.

Definition at line 379 of file LineSegmentIntersectionFinder.h.

Member Function Documentation

◆ computeSweepDirectionPoint0()

agx::Vec3 agxCollide::agxGeometryQueries::SweptLineSegment::computeSweepDirectionPoint0 ( ) const

Returns the non-normalized sweep direction of point0 over time.

Definition at line 438 of file LineSegmentIntersectionFinder.h.

References agxCollide::agxGeometryQueries::LineSegment::point0().

◆ computeSweepDirectionPoint1()

agx::Vec3 agxCollide::agxGeometryQueries::SweptLineSegment::computeSweepDirectionPoint1 ( ) const

Returns the non-normalized sweep direction of point1 over time.

Definition at line 444 of file LineSegmentIntersectionFinder.h.

References agxCollide::agxGeometryQueries::LineSegment::point1().

◆ computeSweepSegmentPoint0()

LineSegment agxCollide::agxGeometryQueries::SweptLineSegment::computeSweepSegmentPoint0 ( ) const

Returns the line segment point0 over time.

Definition at line 450 of file LineSegmentIntersectionFinder.h.

References agxCollide::agxGeometryQueries::LineSegment, and agxCollide::agxGeometryQueries::LineSegment::point0().

◆ computeSweepSegmentPoint1()

LineSegment agxCollide::agxGeometryQueries::SweptLineSegment::computeSweepSegmentPoint1 ( ) const

Returns the line segment point1 over time.

Definition at line 456 of file LineSegmentIntersectionFinder.h.

References agxCollide::agxGeometryQueries::LineSegment, and agxCollide::agxGeometryQueries::LineSegment::point1().

◆ evaluateAt() [1/2]

agxGeometryQueries::LineSegment agxCollide::agxGeometryQueries::SweptLineSegment::evaluateAt ( const agx::Real  time) const

Evaluates the swept line at a given time.

Parameters
timeThe time between 0 and 1.
Return values
Theevaluated line segment.

Definition at line 392 of file LineSegmentIntersectionFinder.h.

◆ evaluateAt() [2/2]

agx::Vec3 agxCollide::agxGeometryQueries::SweptLineSegment::evaluateAt ( const agx::Real  time,
const agx::Real  lineParameter 
) const

Evaluates the swept line at a given time and line parameter and returns a point.

Parameters
timeThe time between 0 and 1.
lineParameterThe line parameter between 0 and 1.
Return values
Theevaluated point.

Definition at line 385 of file LineSegmentIntersectionFinder.h.

◆ isDegeneratedToLine()

bool agxCollide::agxGeometryQueries::SweptLineSegment::isDegeneratedToLine ( ) const

Is the swept line segment degenerated to a line?

Definition at line 432 of file LineSegmentIntersectionFinder.h.

References agxCollide::agxGeometryQueries::LineSegment::isDegeneratedToPoint().

◆ isDegeneratedToPoint()

bool agxCollide::agxGeometryQueries::SweptLineSegment::isDegeneratedToPoint ( ) const

◆ segment0() [1/2]

LineSegment & agxCollide::agxGeometryQueries::SweptLineSegment::segment0 ( )

Gets the swept line segment's first line segment, i.e. at t=0.

Definition at line 401 of file LineSegmentIntersectionFinder.h.

◆ segment0() [2/2]

const LineSegment & agxCollide::agxGeometryQueries::SweptLineSegment::segment0 ( ) const

Gets the swept line segment's first line segment, i.e. at t=0.

Definition at line 407 of file LineSegmentIntersectionFinder.h.

◆ segment1() [1/2]

LineSegment & agxCollide::agxGeometryQueries::SweptLineSegment::segment1 ( )

Gets the swept line segment's second line segment, i.e. at t=1.

Definition at line 413 of file LineSegmentIntersectionFinder.h.

◆ segment1() [2/2]

const LineSegment & agxCollide::agxGeometryQueries::SweptLineSegment::segment1 ( ) const

Gets the swept line segment's second line segment, i.e. at t=1.

Definition at line 419 of file LineSegmentIntersectionFinder.h.


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