Action:
|
Gets the intersections of a line with a circle.
|
|
Prototype:
|
int intersect_line_circle (
|
|
|
const SPAposition& line_pt,
|
// position on line
|
|
|
const SPAunit_vector& line_dir,// direction of
|
|
|
|
|
|
// line
|
|
|
const SPAposition& center,
|
// center of circle
|
|
|
const SPAunit_vector& normal,// circle normal
|
|
|
double radius,
|
|
// circle radius
|
|
|
SPAposition* intpts
|
|
// returns
|
|
|
|
|
|
// intersections
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "kernel/geomhusk/geom_utl.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "baseutil/vector/unitvec.hxx"
|
|
Description:
|
This function returns the number of intersections (0, 1, or 2).
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/geomhusk/geom_utl.hxx
|
|
Effect:
|
Read-only
|