08.04.2016, 02:59
I am wanting to get 2 new positions 3 units away from 2 current positions based on the angle between the points in samp.
I made a little thingy to help illustrate it better:

Going from point A to B their is a 18.4° angle from the north, im samp that is 341.57°, I want to find the (X,Y) cords of C and D, where C is 3 units away from A and D is 3 units away from B.
I also want this to work for I can calculate 2 points 3 units away on the opposite side of the line when your going from B to A.
Ill be sure to give you rep if you can come up with a formula for this
I made a little thingy to help illustrate it better:

Going from point A to B their is a 18.4° angle from the north, im samp that is 341.57°, I want to find the (X,Y) cords of C and D, where C is 3 units away from A and D is 3 units away from B.
I also want this to work for I can calculate 2 points 3 units away on the opposite side of the line when your going from B to A.
Ill be sure to give you rep if you can come up with a formula for this