bool   sgSpaceMath::IsSegmentsIntersecting(const SG_LINE& ln1, bool as_line1, const SG_LINE& ln2, bool as_line2, SG_POINT& resP)

 

Description:

Checks whether two lines or line segments are intersecting in the three-dimensional space.

 

Arguments:

ln1 - first line segment or two points on the line if as_line1==true,

as_line1 - if true, the first argument is considered as two points on the line,

ln2 - second line segment or two points on the line if as_line2==true,

as_line2 - if true, the second argument is considered as two points on the line,

resP - the result of intersecting line segments and lines if they are intersecting.

 

Returned value:

Returns true if the line segments or lines are intersecting (in this case resP is the result of they intersection) and false otherwise.

 

See also:

SG_LINE   SG_POINT