main-image

Docs

beginPath()
checkArcInterval(start [number], end [number], ang[number], dir[boolean])
checkEquals(a [number], b [number])
checkEqualsPoints(A [point or 2 numbers], B[point or 2 numbers])
checkPointInsideLine(P [point or numbers], A [point or numbers], B [point or numbers])
checkNumberInsideInterval(p [number], a [number], b [number])
checkPointInsideRectangle(P [point or numbers], A [point or numbers], B [point or numbers])
checkPointInsideSegment(P [point or numbers], A [point or numbers], B [point or numbers])
checkPointInsideTriangle(P [point or numbers], A [point or numbers], B [point or numbers], C [point or numbers])
clear()
convertToCanvas(P [point or numbers])
convertToSarit(P [point or numbers])
degToRad(a [number])
disable(a [number])
draw()
drawArc(O [point or numbers], r [number], s [number], e [number], d [boolean])
drawArrow(P [point or numbers], ang [number], len [number])
drawArrow2(A [point], B [point])
drawAxes()
drawBezier1(A [point], B [point], V [point])
drawBezier2(A [point], B [point], S [point], T [point])
drawCircle(O [point], r)
drawCubicBezier(A [point], B [point], S [point], T [point])
drawDimensionLine(A [point], B [point], c [number])
drawFunction(eq [string], in1 [number], in2 [number], st [number])
drawGrid()
drawLineWithGradient(m [number], q [number])
drawNumbers()
drawPoint(P [point])
drawPolygon(n [number], O [point], r [number])
drawPolygonalChain()
drawQuadraticBezier(A [point], B [point], V [point])
drawRectangle(A [point], B [point])
drawSarit2dLabel()
drawSegment(A [point], B [point])
drawSegmentFromPointToLine(m [number], P [point], A [point], B [point])
drawText(s [number], P [point])
drawTriangle(A [point], B [point], C [point])
enable(a [string])
endPath()
getAngleBetweenTwoLines(V [point], A [point], B [point])
getAngleByCarnot(a [number], b [number], c [number])
getAngleByCarnot2(A [point], B [point], C [point])
getAngleFromChord(chord [number], radius [number])
getAngleFromGradient(A [point], B [point])
getApproximationValue()
getArcCos(n [number])
getArcSin(n [number])
getArcTan(n [number])
getAreaByHero(a [number], b [number], c [number])
getAreaByHero2(A [point], B [point], C [point])
getBisectorEquation(V [point], A [point], B [point])
getCanvas()
getCanvasHeight()
getCanvasWidth()
getCentroid(A [point], B [point], C [point])
getChordFromAngle(angle [number], radius [number])
getCircularSectorArc(angle [number], radius [number])
getCircularSectorArea(angle [number], radius [number])
getCircularSegmentArea(angle [number], radius [number])
getCircularSegmentArea2(chord [number], radius [number])
getCircumcircle(A [point], B [point], C [point])
getCos(a [number])
getDistance(A [point], B [point])
getDistanceBetweenPointAndLine(P [point], A [point], B [point])
getFillColor()
getFont()
getGradient(A [point], B [point])
getHypByPythagoras(a [number], b [number])
getIncenter(A [point], B [point], C [point])
getIncircle(A [point], B [point], C [point])
getIntercept(A [point], B [point])
getIntersectionBetweenCircleAndArc(A [point], r1 [number], B [point], r2 [number], s [number], e [number], d [boolen])
getIntersectionBetweenLineAndCircle(A [point], B [point], O [point], r [number])
getIntersectionBetweenLineAndParabola(A [point], B [point], a [number], b [number], c [number])
getIntersectionBetweenSegmentAndArc(A [point], B [point], O [point], r [number], s [number], e [number], d [boolean])
getIntersectionBetweenSegmentAndCircle(A [point], B [point], a, b, c)
getIntersectionBetweenTwoArcs(A [point], r1, s1, e1, d1, B [point], r2, s2, e2, d2)
getIntersectionBetweenTwoCircles(A [point], r1, B [point], r2)
getIntersectionBetweenTwoLines(A [point], B [point], C [point], D [point])
getIntersectionBetweenTwoSegments(A [point], B [point], C [point], D [point])
getLegByPythagoras(a, b)
getLineColor()
getLineEquation(A [point], B [point])
getLineFromPoint(m, P [point])
getLineWidth()
getMidpoint(A [point], B [point])
getMixtilinearIncircle(A, B, C, v)
getOrtocenter(A [point], B [point], C [point])
getParabolaTangent(a, b, c, x)
getPerpendicularAtLineThroughPoint(A [point], B [point], P [point])
getPointFromLength(m, P [point], len)
getPolygonApothem(n, side)
getPolygonArea(n, side)
getPolygonRadius(n, s)
getPolygonSide(n, radius)
getQuadEquation(a, b, c)
getSideByCarnot(a, b, c)
getSideOfEquilateralTriangleFromAnInternalPoint(a, b, c)
getSin(a)
getTan(a)
getTangentBetweenLineAndCircle()
getTangentBetweenLineAndTwoCircles()
getTangentEquation()
getTangentsBetweenPointAndArc(P, O, r, s, e, d)
getTangentsBetweenPointAndCircle()
getTextColor()
getTextSize(s)
getVectorDirection()
init()
output(s)
Point(x, y)
print(s)
radToDeg(a)
rotate(ax, ay, bx, by, cx, cy)
round(ax, ay, bx, by, cx, cy)
save()
scale(P, O, f)
setApproximationValue(a)
setCanvasHeight(h)
setCanvasSize(w, h)
setCanvasWidth(w)
setFillColor(r, g, b, a)
setFont(f)
setGradientColor(p, r, g, b, a)
setGradientLinear(O, r1, r2)
setLineColor(r, g, b, a)
setLineWidth(s)
setTextColor(r, g, b, a)
setTextSize(s)
setU(u)
showAxes(a)
showGrid(a)
showLabel(a)
showNumbers(a)
startAnimation(fun, n)
stopAnimation()
translate(P, N)
truncate(a, b)
beginPath()
It checks if angle is internal to rangle
boolean
Example:
checkArcInterval(start [number], end [number], ang[number], dir[boolean])
It checks if angle is internal to range
boolean
Example:
checkEquals(a [number], b [number])
It checks if two values are equal
boolean
Example:
checkEqualsPoints(A [point or 2 numbers], B[point or 2 numbers])
It checks if two points coincide
boolean
Example:
checkPointInsideLine(P [point or numbers], A [point or numbers], B [point or numbers])
It checks if a point belongs to the line
boolean
Example:
checkNumberInsideInterval(p [number], a [number], b [number])
It checks if a number is within a range
boolean
Example:
checkPointInsideRectangle(P [point or numbers], A [point or numbers], B [point or numbers])
It checks if a point is internal to rectangle
boolean
Example:
checkPointInsideSegment(P [point or numbers], A [point or numbers], B [point or numbers])
It checks if a point belongs to the segment
boolean
Example:
checkPointInsideTriangle(P [point or numbers], A [point or numbers], B [point or numbers], C [point or numbers])
It checks if a point is internal to triangle
boolean
Example:
clear()
It clears the workspace
Example:
convertToCanvas(P [point or numbers])
It converts a geometric point to screen coordinates
point
Example:
convertToSarit(P [point or numbers])
It converts a screen point to geometric coordinates
point
Example:
degToRad(a [number])
Degrees to Radians conversion
number
Example:
disable(a [number])
it disables grid, axes, numbers, label, fill-mode, stroke-mode
Example:
draw()
It draws the shape
Example:
drawArc(O [point or numbers], r [number], s [number], e [number], d [boolean])
It draws an arc where O is center, r is the radius, s is the beginning angle, e is the ending angle, d is the verse (true for cw, false for ccw)
Example:
drawArrow(P [point or numbers], ang [number], len [number])
It draws an arrow where P is the beginning point, ang is the angle, len is the length
Example:
drawArrow2(A [point], B [point])
It draws an arrow where A and B are the extremes
Example:
drawAxes()
It draws the axes
Example:
drawBezier1(A [point], B [point], V [point])
It draws a quadratic bezier where A and B are the extremes and V is the handle
Example:
drawBezier2(A [point], B [point], S [point], T [point])
It draws a cubic bezier where A and B are the extremes and S and T are the handles
Example:
drawCircle(O [point], r)
It draws a circle where O is the center and r is the radius
Example:
drawCubicBezier(A [point], B [point], S [point], T [point])
Alias drawBezier2
Example:
drawDimensionLine(A [point], B [point], c [number])
It draws a measurement segment where A and B are the extremes of segment and c the distance
Example:
drawFunction(eq [string], in1 [number], in2 [number], st [number])
It draws a function where eq = 'y = x*x+Math.sqrt(x)', in1 and in2 are the range, st is the resolution
Example:
drawGrid()
It draws the grid
Example:
drawLineWithGradient(m [number], q [number])
It draws a line knowing gradient and intercept
Example:
drawNumbers()
It shows the numbers of grid
Example:
drawPoint(P [point])
It draws a point
Example:
drawPolygon(n [number], O [point], r [number])
It draws a regular polygon where n (integer) is the number of sides, O is the center and r is the radius of circumcircle
Example:
drawPolygonalChain()
It draws a polygon by inserting the coordinates of the vertices in the round brackets
Example:
drawQuadraticBezier(A [point], B [point], V [point])
Alias drawBezier1
Example:
drawRectangle(A [point], B [point])
It draws a rectangle where A and B are the opposite vertices
Example:
drawSarit2dLabel()
It shows the Sarit label
Example:
drawSegment(A [point], B [point])
It draws a segment where A and B are the extremes
Example:
drawSegmentFromPointToLine(m [number], P [point], A [point], B [point])
It draws a segment from a point to a line. The m parameter is the gradient of segment, P is the point and A and B are two points of the line
Example:
drawText(s [number], P [point])
It draws the text contained in the string s
Example:
drawTriangle(A [point], B [point], C [point])
It draws a triangle
Example:
enable(a [string])
It enables grid, axes, numbers, label, fill-mode, stroke-mode
Example:
endPath()
...
Example:
getAngleBetweenTwoLines(V [point], A [point], B [point])
This functions returns the angle AVB
number (0-360)
Example:
getAngleByCarnot(a [number], b [number], c [number])
This function returns the value (in degrees) of the angle between the segments a and b, where a, b and c are the measurements of sides of triangle
number (0-360)
Example:
getAngleByCarnot2(A [point], B [point], C [point])
This function returns the value (in degrees) of the angle ABC
number (0-360)
Example:
getAngleFromChord(chord [number], radius [number])
This function returns the value (in degrees) of the angle knowing the value of chord and the radius
number (0-360)
Example:
getAngleFromGradient(A [point], B [point])
This function returns the value (in degrees) of the angle between line and x-axis
number (0-360)
Example:
getApproximationValue()
It returns the value of approximation
number
Example:
getArcCos(n [number])
It returns the value of arccosine in degrees
number
Example:
getArcSin(n [number])
It returns the value of arcsine in degrees
number
Example:
getArcTan(n [number])
It returns the value of arctangent in degrees
number
Example:
getAreaByHero(a [number], b [number], c [number])
It returns the area of triangle knowing the measurements of sides
number
Example:
getAreaByHero2(A [point], B [point], C [point])
It returns the area of triangle knowing the coordinates of verdices
number
Example:
getBisectorEquation(V [point], A [point], B [point])
This function returns the gradient and the intercept of bisector
array with 2 items (numbers)
Example:
getCanvas()
This function returns the canvas object
object
Example:
getCanvasHeight()
This function returns the value of canvas height
number
Example:
getCanvasWidth()
This function returns the value of canvas width
number
Example:
getCentroid(A [point], B [point], C [point])
It returns an array containing the coordinates of centroid
array with point, if there is an error, the array length is 0
Example:
getChordFromAngle(angle [number], radius [number])
It returns the length of chord knowing angle and radius
number
Example:
getCircularSectorArc(angle [number], radius [number])
It returns the length of arc knowing angle and radius
number
Example:
getCircularSectorArea(angle [number], radius [number])
It returns the area of circular sector knowing angle and radius
number
Example:
getCircularSegmentArea(angle [number], radius [number])
It returns the area of circular segment knowing angle and redius
number
Example:
getCircularSegmentArea2(chord [number], radius [number])
It returns the area of circular segment knowing chord and redius
number
Example:
getCircumcircle(A [point], B [point], C [point])
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getCos(a [number])
It calculates the cosine of a (where a is in degrees)
number
Example:
getDistance(A [point], B [point])
It calculates the distance between A and B
number
Example:
getDistanceBetweenPointAndLine(P [point], A [point], B [point])
It calculates the distance between the point P and the line passing through A and B
number
Example:
getFillColor()
It returns the array containing the current shape color
array with 4 items (R, G, B, A)
Example:
getFont()
It returns the string containing the current font
string
Example:
getGradient(A [point], B [point])
It returns the gradient of line passing through A and B. If line is vertical the function returns the string VERTICAL
number
Example:
getHypByPythagoras(a [number], b [number])
It calculates the value of hypotenuse knowing the value of legs
number
Example:
getIncenter(A [point], B [point], C [point])
It returns an array containing the coordinates of incenter
array with point
Example:
getIncircle(A [point], B [point], C [point])
It returns an array containing coordinates and radius of incircle
array with center, radius and 3 tangent points
Example:
getIntercept(A [point], B [point])
It returns the intercept of the line passing through A and B. If the line is vertical, the function returns the string VERTICAL
number
Example:
getIntersectionBetweenCircleAndArc(A [point], r1 [number], B [point], r2 [number], s [number], e [number], d [boolen])
This function returns an array containing the points of intersection. The first three parameters of the function are the center and radius of the circle, the remaining parameters are the center, the radius, the beginning angle, the ending angle and the verse of arc
array of numbers
Example:
getIntersectionBetweenLineAndCircle(A [point], B [point], O [point], r [number])
This function returns an array containing the points of intersection between line and circle. The first four parameters are the coordinates of points A and B (from which the line passes), the remaining parameters are center and radius of circle
array of points
Example:
getIntersectionBetweenLineAndParabola(A [point], B [point], a [number], b [number], c [number])
This function finds the points of intersection between line and parabola. The first 4 parameters are the extremes of line. The remaining parameters are the coefficients of parabola equation
array of numbers
Example:
getIntersectionBetweenSegmentAndArc(A [point], B [point], O [point], r [number], s [number], e [number], d [boolean])
This function returns an array containing the points of intersection between segment and arc. The first four parameters are the extremes of segment, the remaining are the center, the radius, the beginning angle, the ending angle, the verse of arc
array of numbers
Example:
getIntersectionBetweenSegmentAndCircle(A [point], B [point], a, b, c)
This function returns an array containing the points of intersection between segment and circle. The first four parameters are the extremes of segment, the remaining are the parameters of circle
array of numbers
Example:
getIntersectionBetweenTwoArcs(A [point], r1, s1, e1, d1, B [point], r2, s2, e2, d2)
...
array of numbers
Example:
getIntersectionBetweenTwoCircles(A [point], r1, B [point], r2)
It returns an array containing the coordinates of intersection points between two circles
array of numbers
Example:
getIntersectionBetweenTwoLines(A [point], B [point], C [point], D [point])
It returns an array containing the coordinates of intersection point between two lines
array of numbers
Example:
getIntersectionBetweenTwoSegments(A [point], B [point], C [point], D [point])
It returns an array containing the coordinates of intersection point between two segments
array of numbers
Example:
getLegByPythagoras(a, b)
It calculates the third side of rigth triangle
number
Example:
getLineColor()
It returns an array containing the current colors of line
array of numbers (R, G, B, A)
Example:
getLineEquation(A [point], B [point])
It returns an array containing gradient and intercept of the line passing through A and B
array with 2 numbers
Example:
getLineFromPoint(m, P [point])
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getLineWidth()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getMidpoint(A [point], B [point])
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getMixtilinearIncircle(A, B, C, v)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getOrtocenter(A [point], B [point], C [point])
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getParabolaTangent(a, b, c, x)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getPerpendicularAtLineThroughPoint(A [point], B [point], P [point])
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getPointFromLength(m, P [point], len)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getPolygonApothem(n, side)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getPolygonArea(n, side)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getPolygonRadius(n, s)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getPolygonSide(n, radius)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getQuadEquation(a, b, c)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getSideByCarnot(a, b, c)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getSideOfEquilateralTriangleFromAnInternalPoint(a, b, c)
It return the measure of the side of the triangle knowing the distances of the point with respect to the three vertices
number
Example:
getSin(a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTan(a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTangentBetweenLineAndCircle()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTangentBetweenLineAndTwoCircles()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTangentEquation()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTangentsBetweenPointAndArc(P, O, r, s, e, d)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTangentsBetweenPointAndCircle()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTextColor()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getTextSize(s)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
getVectorDirection()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
init()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
output(s)
It shows output message
Example:
Point(x, y)
It create a new point (x,y)
Example:
print(s)
It print the string
Example:
radToDeg(a)
It converts from radians to degrees
number
Example:
rotate(ax, ay, bx, by, cx, cy)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
round(ax, ay, bx, by, cx, cy)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
save()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
scale(P, O, f)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setApproximationValue(a)
It sets the approximation factor
Example:
setCanvasHeight(h)
It sets the canvas height
Example:
setCanvasSize(w, h)
It sets the canvas size
Example:
setCanvasWidth(w)
It sets the canvas width
Example:
setFillColor(r, g, b, a)
It sets the shape background color
Example:
setFont(f)
It sets the font
Example:
setGradientColor(p, r, g, b, a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setGradientLinear(O, r1, r2)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setLineColor(r, g, b, a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setLineWidth(s)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setTextColor(r, g, b, a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setTextSize(s)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
setU(u)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
showAxes(a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
showGrid(a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
showLabel(a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
showNumbers(a)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
startAnimation(fun, n)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
stopAnimation()
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
translate(P, N)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example:
truncate(a, b)
It returns an array containing coordinates and radius of circumcircle
array of numbers
Example: