Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
function intersect in lazmapviewer
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Anyway to "embed" Windows...
by
egsuh
[
Today
at 05:13:50 am]
CADSys4 3D.
by
HPF_BR
[
Today
at 01:51:50 am]
class not found
by
jamie
[
Today
at 12:24:15 am]
Qt6/Wayland clipboard: pa...
by
dbannon
[
Today
at 12:11:58 am]
Update a table with an Au...
by
CraigC
[March 10, 2026, 10:54:23 pm]
ShortStrings vs long stri...
by
Martin_fr
[March 10, 2026, 10:31:12 pm]
TSplitter color property ...
by
backprop
[March 10, 2026, 08:43:28 pm]
Z80 ZX Spectrum and Syste...
by
Cascade
[March 10, 2026, 08:22:14 pm]
Need help with project ma...
by
mas steindorff
[March 10, 2026, 07:25:29 pm]
could Ardour's YTK be use...
by
robert rozee
[March 10, 2026, 03:18:36 pm]
Synchronizing Lazarus pro...
by
Martin_fr
[March 10, 2026, 03:18:18 pm]
Questions about TFuncSeri...
by
hedgehog
[March 10, 2026, 02:03:29 pm]
[revisited] triple click
by
Thaddy
[March 10, 2026, 01:08:40 pm]
macOS 14+ Install Instruc...
by
alchymylab
[March 10, 2026, 12:49:31 pm]
Hello! Anything new?
by
JuhaManninen
[March 10, 2026, 11:22:16 am]
C/C++ code to Object Pasc...
by
domasz
[March 10, 2026, 10:44:20 am]
[Solved] Saving a workboo...
by
Kaljakoira
[March 10, 2026, 09:09:59 am]
Pipewire API
by
Thausand
[March 10, 2026, 07:38:06 am]
Good GPU accelerated math...
by
myisjwj
[March 10, 2026, 03:17:06 am]
Debian removes FPC/Lazaru...
by
Fred vS
[March 09, 2026, 11:17:03 pm]
REST Server/Client, how t...
by
valdir.marcos
[March 09, 2026, 10:18:36 pm]
TSpeedButton qt6 styleshe...
by
dsiders
[March 09, 2026, 09:40:21 pm]
Purpose of TProcessUTF8
by
Thaddy
[March 09, 2026, 09:08:03 pm]
How to remove consoleApp ...
by
Thaddy
[March 09, 2026, 08:51:40 pm]
Fast Canvas Library V1.05...
by
Gigatron
[March 09, 2026, 08:32:15 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: function intersect in lazmapviewer (Read 343 times)
Sukram
Newbie
Posts: 1
function intersect in lazmapviewer
«
on:
February 06, 2026, 07:42:17 pm »
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
Logged
wp
Hero Member
Posts: 13412
Re: function intersect in lazmapviewer
«
Reply #1 on:
February 06, 2026, 08:30:39 pm »
You mean this one (in unit mvDrawingEngine)?
Code: Pascal
[Select]
[+]
[-]
// 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
;
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
function intersect in lazmapviewer
TinyPortal
© 2005-2018