cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Reg: 2D arc definition through toolkit

skashyap
4-Participant

Reg: 2D arc definition through toolkit

Hi All,

I wanted to know how to calculate start and end angle of an arc with the following data known:

1. Starting Point

2. Ending Point

3. Center of the arc

4. Radius

Any information related to this will be very helpful.

 

Thanks in advance!

Srikanth

3 REPLIES 3
skashyap
4-Participant
(To:skashyap)

Above information is required to draw a sketch (2D Arc)

It's basic geometry. You have a center point, you have two end points. Define a vector from the center point to each of the end points. Calculate the angle from each vector with respect to the reference axis (X axis, I believe). The only thing that might be tricky about it is if the function you are feeding these values into needs them in a range of zero to 360 degrees, or -180 to +180 degrees.

skashyap
4-Participant
(To:KenFarley)

Thanks a lot !

 

As you said my main intention is to understand what values to be allocated in 2D arc structure. As you mentioned, will it be  zero to 360 degrees, or -180 to +180 degrees.

Top Tags