Skip to main content
1-Visitor
August 1, 2017
Question

Reg: 2D arc definition through toolkit

  • August 1, 2017
  • 2 replies
  • 2441 views

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

2 replies

skashyap1-VisitorAuthor
1-Visitor
August 2, 2017

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

KenFarley
21-Topaz II
August 2, 2017

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.

skashyap1-VisitorAuthor
1-Visitor
August 2, 2017

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.