You may view all the posts of the category "geometry.asy"
![]() |
|
(Compiled with Asymptote version 2.14svn-r5318) |
import geometry; size(10cm,0); // currentcoordsys=cartesiansystem((0,0),i=(1,0.5),j=(-0.5,.75)); show(currentcoordsys, xpen=invisible); point A=(4,2); dot("$A$",A,S,red); real R=2; circle C=circle(A,R); draw(C,linewidth(1mm)); draw("$R="+(string)R+"$", A--point(C,0), N, Arrows); /* View the definition of point point(explicit circle,explicit real) */ dot("point(C, 15)", point(C,15),2E,3mm+blue); /* View the definition of abscissa nodabscissa(real) */ dot("point(C, 40)", point(C,nodabscissa(40)), 2W,3mm+blue); // point(C,nodabscissa(40)) can be replaced by point(C,40) /* View the definition of int circlenodesnumber(real) */ dot("point(C, 3*circlenodesnumber(R)/4)", point(C, 3*circlenodesnumber(R)/4), S, 3mm+blue); dot((path)C, yellow); write(length((path)C));