/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ // BVI2SL computes the intersection point of two 2D straight lines, // (P1(2),DC1(2)) and (P2(2),DC2(2)). // **** INPUT *** // P1(2),DC1(2)......1st straight line, P1(2) is a point and DC1(2) is // the directional cosine. // The straight line can be expressed as follows using // parameter t; X(t)=P1(1)+DC1(1)*t // Y(t)=P1(2)+DC1(2)*t // P2(2),DC2(2)......is 2nd straight line. // **** OUTPUT *** // P(2),T1,T2......are intersection point coordinate data P(.) // and the parameter value of 1st(T1) and 2nd line(T2). void bvi2sl_( const double *p1,const double *dc1,const double *p2,const double *dc2, double *p, double *t1, double *t2 );