Johannes said:
Is there a way to draw an arc which is 1/4 of a circle?
It looks like Shapes.addcurve only draw bezier curve, but how do I make the
curve a 1/4 of a circle?
I also tried Shapes.BuildFreeForm().AddNodes(), but I couldn't get it to
draw 1/4 of a circle.
hello Johannes,
You always have the possibility to use standard equations of a cicle
(in cartesian or better polar coordinates)
You will for example get half a circle with positive y-values and
centered on the origin
(simplest version) if you put:
in Column AA from A3 to A39 a series from 0 to 180, step 5
in column B (standing for x= OP *cos (theta) = rho * cos (theta))
with the formula
in B3=2*$E$1*COS(D3*PI()/180)
The figure in E1 stands for the radius of your circle
in column C, corresponding to y = OPsin Theta = rho sin Theta with the
Formula
in C3 =2*$E$1*SIN(D3*PI()/180)
Make your diagram from the Range B3:C39
If you want a complete circle centered on the origin,
complete the series in Column A up to 360
and copy down the formulas in Columns B and C
the new range for your diagram will be B3:C75
take care that the x and y axes have the same absolute size for the
same values....
If you want only the first quadrant ( in the trigonometric sense),
limit the Diagram
for equivalent 0 to 90 ° i.e use the Range B3:C21
You are free to choose any angle you want for the beginning of your
curve
(the first column corresponds to values in °); Your 1/4 circle should
end for a value in ° incremented with + 90 in your first Column)
regards
Jean