Forum > Packages and Libraries
function intersect in lazmapviewer
(1/1)
Sukram:
Hello, how do I use the `intersect` function in LazMapViewer? I want to find the point where two lines intersect. Is this function suitable for that, and could I get some example code?
thank you
wp:
You mean this one (in unit mvDrawingEngine)?
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---// Intersection point between line segments <P1, P2> and <P3, P4>// Returns:// 0 - collinear line segments// 1 - line segments intersect at PX// 2 - collinear overlapping line segments, PX lies on both//function Intersect(P1, P2, P3, P4: TPoint; out PX: TPoint): Integer;
Navigation
[0] Message Index