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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Reg: 2D arc definition through toolkit

skashyap
8-Gravel

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

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.

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.

Announcements


Top Tags