Action:
|
Determines a position on a
bs3_curve where a line from a given position is tangent to the curve.
|
|
Prototype:
|
logical bs3_curve_tan_pt_crv (
|
|
|
const SPAposition& point,
|
// input start point
|
|
|
bs3_curve crv,
|
|
// input curve
|
|
|
const SPAunit_vector& normal,// curve normal
|
|
|
double* t,
|
|
// curve parameter
|
|
|
logical old_method
|
|
// solution method
|
|
|
|
= FALSE,
|
|
|
const SPAvector& xa
|
|
// x-axis
|
|
|
|
=(*(SPAvector*)NULL_REF),
|
|
|
const SPAvector& ya
|
|
// y-axis
|
|
|
|
=(*(SPAvector*)NULL_REF),
|
|
|
const SPAposition& guess_pt// input guess point
|
|
|
|
=(*(SPAposition*)NULL_REF
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/logical.h"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "baseutil/vector/unitvec.hxx"
|
|
#include "baseutil/vector/vector.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/sg_bs3c/sps3crtn.hxx"
|
|
Description:
|
Determines a position on a
bs3_curve where a line from a given position is tangent to the curve. Uses a guess parameter value to aid the solution (especially where there are multiple solutions).
|
|
|
Returns
TRUE if the point was computed;
FALSE if no solution was found.
FALSE is preferred as the solution method (do not use the old method). If
old_method is
TRUE, then the
x- and
y-axis values are needed.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3c/sps3crtn.hxx
|
|
Effect:
|
System routine
|