Jump to content
shadowst17

Get the corner position of a diagonal line

Recommended Posts

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

ZU9BEOF.png

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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.

 

7CfyHNa.png

Edited by shadowst17

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×