yucad3d

CadPlineGetInterPoint

Nearest intersection of a polyline with the segment (x1,y1)-(x2,y2).

std::int32_t CadPlineGetInterPoint ( YuHandle hEnt, double x1, double y1, double x2, double y2, double* pX, double* pY, double* pDist );

Parameters

hEnt (YuHandle)
Handle to the entity.
x1 (double)
Numeric value (double precision).
y1 (double)
Numeric value (double precision).
x2 (double)
Numeric value (double precision).
y2 (double)
Numeric value (double precision).
pX (double*)
Receives the coordinate (caller-supplied double*).
pY (double*)
Receives the coordinate (caller-supplied double*).
pDist (double*)
Caller-supplied output pointer.

Return Value

The inter point.

Remarks

Returns 1 and writes the crossing point + its distance from (x1,y1) when found, else 0. (Vecad CadPlineGetInterPoint — undocumented; well-defined geometry, first-hit-from-the-segment-start semantics.)

See Also