closest_points
List of: Functions
Subjects: Model Geometry
Contents: Kernel

Action: Determines where two lines, defined by positions and directions, are closest.

Prototype: logical closest_points (


const SPAposition& p1, // root position on first




// line


const SPAunit_vector& v1,// direction of first




// line


const SPAposition& p2, // root position on




// second line


const SPAunit_vector& v2,// direction on second




// line


double& t1, // closest first line




// parameter returned


SPAposition& pt1, // position on first line




// returned


double& t2, // closest second line




// parameter returned


SPAposition& pt2 // position on second




// line returned


);

Includes: #include "kernel/acis.hxx"

#include "kernel/geomhusk/geom_utl.hxx"

#include "baseutil/logical.h"

#include "baseutil/vector/position.hxx"

#include "baseutil/vector/unitvec.hxx"

Description: This function returns TRUE if the lines intersect, and it finds the intersection. For parallel lines, this function returns the root position on the first line and its projection on the second line.

Library: kernel

Filename: kern/kernel/geomhusk/geom_utl.hxx

Effect: Read-only
PDF/KERN/24FNC.PDF
HTM/DATA/KERN/KERN/24FNC/0003.HTM