- Category:
- Algorithm
- Tags:
-
- File Size:
- 17kb
- Update:
- 2015-09-16
- Downloads:
- 0 Times
- Uploaded by:
- machang
Description: Parameters:
p1~p4:直线上不相同的两点
P1 ~ P4: two points in a straight line.
*p:通过指针返回结果
*p: the result is returned by the pointer.
返回值:1:两直线相交;2:两直线平行
Return value: 1: two straight line two: 2
如需要判断两线段交点,检验k 和对应k 1(注释中)的值是否在0~1 之间,用在0~1
If you need to judge the intersection of two line segments, test K and the value of the corresponding K 1 (notes) is between 1 to 0, with the 0 to 1
之间的那个求交点
Between the intersection
To Search:
File list (Check if you may need any files):
LZXJD.docx