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
Debian releases a Gtk3 La...
by
robert rozee
[
Today
at 05:10:45 am]
100go88net
by
phammanhtien222
[
Today
at 05:03:46 am]
Lightweight HTML/CSS rend...
by
ALLIGATOR
[
Today
at 04:51:01 am]
Initialization & finaliza...
by
runewalsh
[
Today
at 04:40:40 am]
[AGGPas] Difference betwe...
by
Graeme
[
Today
at 02:29:45 am]
[SOLVED] GTK3 : Icons hav...
by
theo
[March 16, 2026, 11:29:43 pm]
Getting results from sql ...
by
CraigC
[March 16, 2026, 10:00:24 pm]
add thumb up or like butt...
by
Martin_fr
[March 16, 2026, 09:35:13 pm]
Problem with drawing orde...
by
wp
[March 16, 2026, 06:26:27 pm]
TChart: Wrong default val...
by
wp
[March 16, 2026, 06:22:26 pm]
Hello! Anything new?
by
simone
[March 16, 2026, 05:47:57 pm]
LAMW Foreground service -...
by
Mongkey
[March 16, 2026, 05:40:05 pm]
could Ardour's YTK be use...
by
Fred vS
[March 16, 2026, 04:59:52 pm]
Any way to "embed" Window...
by
myisjwj
[March 16, 2026, 02:50:41 pm]
mORMot again (HttpServer/...
by
ttomas
[March 16, 2026, 12:45:49 pm]
Is it me or is there some...
by
Martin_fr
[March 16, 2026, 11:48:04 am]
Exiting HeapTrace dump
by
jamie
[March 16, 2026, 11:34:49 am]
CONCAT formula
by
Zvoni
[March 16, 2026, 08:17:21 am]
emuloader: help to resurr...
by
arcadegamer
[March 15, 2026, 08:30:31 pm]
AutoSize TMemo.Height?
by
wp
[March 15, 2026, 05:55:05 pm]
Possible Enhancement to t...
by
jamie
[March 15, 2026, 04:10:38 pm]
lazarus 4.99 and missing ...
by
wp
[March 15, 2026, 03:11:43 pm]
Questions about TFuncSeri...
by
hedgehog
[March 15, 2026, 06:58:29 am]
CryptoLib4Pascal
by
Xor-el
[March 14, 2026, 06:17:32 pm]
Extended Module Player
by
Gigatron
[March 14, 2026, 05:32:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: function intersect in lazmapviewer (Read 359 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: 13433
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