How can i find the point of intersection of two lines?

Grim

New member
Joined
Jul 3, 2023
Messages
2
Just as the title says, i would like to know how to find the point of intersection of two lines if the only thing i know is the coordinates of the end points of the lines. Even if there are equations to find the point I dont know how to code equations in game, I would appreciate any help.
 

Grim

New member
Joined
Jul 3, 2023
Messages
2
Idk if you asked this question just to act cool but tbh, Idk why you need this code IN A CRACKED SERVER OF A FREAKING BLOCK GAME
I jus wanted to try coding smt of an animation with particles
 

Hauzenex

New member
Joined
May 19, 2023
Messages
21
you didnt say that you know where the lines started so skill issue ez
 

Meds67u

New member
Joined
Mar 18, 2024
Messages
13
Just as the title says, i would like to know how to find the point of intersection of two lines if the only thing i know is the coordinates of the end points of the lines. Even if there are equations to find the point I dont know how to code equations in game, I would appreciate any help.
You can use vectors and a discriminant - it's not easier to come up with
 

Meds67u

New member
Joined
Mar 18, 2024
Messages
13
You can use vectors and a discriminant - it's not easier to come up with
In general, you can use mathematical analysis and do everything much faster and better, but although to whom am I saying this?)
 
Top