All Frameworks  Class Hierarchy  This Framework  Indexes

SPAkern Global Function int_2_lines_3d


logical int_2_lines_3d( const SPAposition& p1,
const SPAvector& v1,
const SPAposition& p2,
const SPAvector& v2,
double& dt1,
double& dt2)
Finds where two lines defined by positions and directions are closest.

Role: Identical to closest_points() except that it doesn't require unit vectors, and it doesn't return the points. If the positions and vectors are values and first derivatives of curves, then the parameters returned would be the first-order SPAparameter shifts to find the intersection of the curves.

Parameters:
pt1
First SPAposition.
pt2
First vector.
pt3
Second SPAposition.
pt3
Second vector.
pt3
first derivative.
pt3
Second derivative.

This object is included in the file: geom_utl.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.