Dear all,
Please help if you can.
I need to draw an arc, and I have only 3 points. The function am using accepts only 2 parameters, the centerpoint and angle.
I have managed to get the center point, the radius, and other parameters I need.
I would like to know if there is a way to determine the direction of the angle/ arc. For example, if i give in 3 points, it should get to these points in the order given.
At this moment, 30 degrees is the same to it, doesnt matter if one needs to draw the 30 degrees clock or counter clockwise.
I have tried to determine the direction through comparing the X and Y coordinates of the 1st and 2nd points, but its not consistent.
Anybody has an idea of a consistent way to achieve this?
Thanks in advance.
STaut.
View the full article
Please help if you can.
I need to draw an arc, and I have only 3 points. The function am using accepts only 2 parameters, the centerpoint and angle.
I have managed to get the center point, the radius, and other parameters I need.
I would like to know if there is a way to determine the direction of the angle/ arc. For example, if i give in 3 points, it should get to these points in the order given.
At this moment, 30 degrees is the same to it, doesnt matter if one needs to draw the 30 degrees clock or counter clockwise.
I have tried to determine the direction through comparing the X and Y coordinates of the 1st and 2nd points, but its not consistent.
Anybody has an idea of a consistent way to achieve this?
Thanks in advance.
STaut.
View the full article