private boolean intersection ( final long pX0 , final long pY0 , final long pX1 , final long pY1 ) { return intersection ( pX0 , pY0 , pX1 , pY1 , mXMin , mYMin , mXMin , mYMax ) // x min segment || intersection ( pX0 , pY0 , pX1 , pY1 , mXMax , mYMin , mXMax , mYMax ) // x max segment || intersection ( pX0 , pY0 , pX1 , pY1 , mXMin , mYMin , mXMax , mYMin ) // y min segment || intersection ( pX0 , pY0 , pX1 , pY1 , mXMin , mYMax , mXMax , mYMax ) ; // y max segment }
Intersection of a segment with the 4 segments of the clip area