shadowst17 Posted September 22, 2022 Share Posted September 22, 2022 Hello, I imagine this is a super simple math issue and my brain has just turned to mush but how would I go about getting the corner/ intersection point of 2 points that are at an angle from each other. Please see the attached image for an example. Thanks Quote Link to comment Share on other sites More sharing options...
animatrix Posted September 23, 2022 Share Posted September 23, 2022 Hi, There are more than 1 intersection in this case. Do you require the intersected lines form 90 degrees? But even then, there are infinite number of intersections that would revolve around the vector defined by your 2 points. 1 Quote Link to comment Share on other sites More sharing options...
shadowst17 Posted September 23, 2022 Author Share Posted September 23, 2022 (edited) Fair point, if I provide a direction on both points is it possible. Basically i'm trying to create some sort of road system and I need to generate a curve that connects to another road but smoothly rather than directly. Edited September 23, 2022 by shadowst17 Quote Link to comment Share on other sites More sharing options...
animatrix Posted September 24, 2022 Share Posted September 24, 2022 Yes in that case it's possible. Have to implement a line line intersection such as this one: paulbourke.net/geometry/pointlineplane/lineline.c Point, Line, Plane (paulbourke.net) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.