Package 

Class SegmentIntersection


  • 
    public class SegmentIntersection
    
                        

    A class dedicated to the computation of 2D segments intersection points

    • Method Summary

      Modifier and Type Method Description
      static boolean intersection(double pXA, double pYA, double pXB, double pYB, double pXC, double pYC, double pXD, double pYD, PointL pIntersection)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • intersection

         static boolean intersection(double pXA, double pYA, double pXB, double pYB, double pXC, double pYC, double pXD, double pYD, PointL pIntersection)
        Parameters:
        pXA - Starting point of Segment 1 [AB]
        pYA - Starting point of Segment 1
        pXB - Ending point of Segment 1
        pYB - Ending point of Segment 1
        pXC - Starting point of Segment 2 [CD]
        pYC - Starting point of Segment 2
        pXD - Ending point of Segment 2
        pYD - Ending point of Segment 2
        pIntersection - Intersection point as output; can be null