Home > src > lineIntersect.m

lineIntersect

PURPOSE ^

{

SYNOPSIS ^

function [ nmb ] = lineIntersect(M)

DESCRIPTION ^

{

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ nmb ] = lineIntersect(M)
0002 
0003 %{
0004 M= [ x1start y1start x1end y1end;
0005         x2start y2start x2end y2end];
0006 %}
0007 
0008 XY1=M(1,:);
0009 XY2=M(2,:);
0010 out=lineSegmentIntersect(XY1,XY2);
0011 imatrix=out.intAdjacencyMatrix;
0012 
0013 nmb=0;
0014 if(imatrix(1,1)==1)
0015     nmb=1;
0016 else
0017     nmb=-1;
0018 end
0019 
0020 end

Generated on Tue 31-May-2016 19:24:56 by m2html © 2005