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
[SOLVED] GTK3 : Icons hav...
by
ginoo
[
Today
at 06:55:37 pm]
Problem with drawing orde...
by
wp
[
Today
at 06:26:27 pm]
TChart: Wrong default val...
by
wp
[
Today
at 06:22:26 pm]
Hello! Anything new?
by
simone
[
Today
at 05:47:57 pm]
Getting results from sql ...
by
CraigC
[
Today
at 05:41:11 pm]
LAMW Foreground service -...
by
Mongkey
[
Today
at 05:40:05 pm]
could Ardour's YTK be use...
by
Fred vS
[
Today
at 04:59:52 pm]
Debian releases a Gtk3 La...
by
PascalDragon
[
Today
at 04:23:48 pm]
Any way to "embed" Window...
by
myisjwj
[
Today
at 02:50:41 pm]
mORMot again (HttpServer/...
by
ttomas
[
Today
at 12:45:49 pm]
Is it me or is there some...
by
Martin_fr
[
Today
at 11:48:04 am]
Exiting HeapTrace dump
by
jamie
[
Today
at 11:34:49 am]
CONCAT formula
by
Zvoni
[
Today
at 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]
Initialization & finaliza...
by
Martin_fr
[March 15, 2026, 05:24:36 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]
[AGGPas] Difference betwe...
by
Roland57
[March 14, 2026, 04:36:02 pm]
declaring Array
by
Thaddy
[March 14, 2026, 01:24:11 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: function intersect in lazmapviewer (Read 357 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