R
R
RADE952019-01-03 13:26:46
Geometry
RADE95, 2019-01-03 13:26:46

How to find a point given two points and two angles?

A, B, C: Vector2
a: float
nvakAKvbIC0.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RADE95, 2019-01-03
@RADE95

It's decided. Thanks to all!
c = new Vector2(ax, (b - a).magnitude * Mathf.Tan(maxAngle * Mathf.Deg2Rad) + ay);
where a - A, b - B, c - C, maxAngle - a

G
GavriKos, 2019-01-03
@GavriKos

Google "aspect ratio in a right triangle".
Usually such a problem is solved not through the coordinates of the points, but through the lengths of the segments, but one can be easily translated into the other.

V
VoidVolker, 2019-01-03
@VoidVolker

The Pythagorean theorem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question