- Home /
how do I find this point..
Greetings, I'm searching for a Vector2 between 4 known Vector2.
One is the center of a Circle. Another one is a rotated point along a radius slightly bigger than the circles actual radius. The other two are corner points of the circle.
I want the point that is along the line of 3 and 4 and along the line of x0 and 0.
Answer by Eno-Khaon · Jun 17, 2016 at 04:50 PM
If you're simply looking for a line-line intersection, a function to handle that adequately can be found here.
By your example, it would then be called with:
Vector2 intersection = LineIntersectionPoint(0, x0, 3, 4);
If you're also looking for the point on the circle, then that adds another layer of complexity, but still nothing major. You could simply take the result of that line intersection and extend it out to the radius of the circle.
Your answer
Follow this Question
Related Questions
What happens when I populate a ray with a vector2? 1 Answer
Create custom constructors for certain Value types/Objects (Vector3, Transform, etc...) 2 Answers
[HELP] Translating vector 2 co-ordinates to real space 1 Answer
how to find a point(vector2) between two points(Vector2) of a line (line renderer) 2 Answers
C# Convert Vector3[] to Vector2[] 3 Answers