|Original author(s)||Cosimo Saccone|
|Initial release||August 1, 2017|
1.01 / March 1, 2018
|Operating system||Linux, Mac OS X, Windows, Android|
|Type||Interactive geometry software|
Search Sarit2d (software) on Amazon.
Sarit2d, created by Cosimo Saccone, can be used without downloading anything. For using the library it's enough to write the code in the online sandbox and push the run button. If not there are errors, the drawing will be shown or the result will be printed. Sarit2d contains essentially three types of functions: drawing functions, calculating functions, control functions.
They are the functions that allow to design a shape (point, line, polygon, etc). They make calculations within them but they don't return any value. Their purpose is to draw.
They are the functions that make calculations and return results (intersections, distances, etc).
They are the functions that control various aspects of the library.
Below is a brief example about the operation of the library:
var m = -2/3, r = 10; drawCircle(0,0,r); var q = getIntersectionBetweenLineAndCircle(0,0,5,5*m,0,0,r); var ax = q, ay = q, bx = -q, by = q, cx = q, cy = q; drawSegment(ax,ay,cx,cy); drawRectangle(ax,ay,cx,cy); var BC = getDistance(cx,cy,bx,by); drawCircle(cx,cy,BC); q = getIntersectionBetweenTwoCircles(0,0,r,cx,cy,BC); var dx = q, dy = q; drawSegment(bx,by,dx,dy); q = getIntersectionBetweenTwoLines(ax,ay,cx,cy,bx,by,dx,dy); var ex = q, ey = q; q = getIntersectionBetweenLineAndCircle(ex,ey,ex,ey+10,cx,cy,BC); var jx = q, jy = q, kx = q, ky = q; drawSegment(jx,jy,kx,ky); drawText("A",-10,6); drawText("B",9,6); drawText("C",9,-7); drawText("D",-3,-11); drawText("E",4,-2); drawText("J",4,3); drawText("K",4,-15); var JK = getDistance(jx,jy,kx,ky); print(JK);
- Compass-and-straightedge construction
- Interactive geometry software
This article "Sarit2d (software)" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Sarit2d (software). Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.