Skip to main content

Line

It constructs a line.

Syntax

line(Point, Point)
line(Point, Vector)
line(Point, Real)
line(Vector)
line(Equation)
line(Real, Real)
line(Segment)
line(Triangle, Integer)
line(Polygon, Integer)

Description

Given two points AA and B, it constructs a line passing through such points. You can also extract the corresponding coefficients through the slope() and intersect() commands.

calc.line1.calc.png
calc.line1.plotter0.calc.png

Given a point AA and a vector vv, it constructs a line passing through AA with direction vector vv.

calc.line2.calc.png

Given a point AA and a real mm, it constructs a line passing through AA with slope mm.

calc.line3.calc.png
calc.line3.plotter0.calc.png

Given a vector c=[c1,c2,c3]c=\lbrack c_1,c_2,c_3\rbrack, it constructs a line whose equation is c1x+c2y+c3=0c_1x+c_2y+c_3=0.

calc.line4.calc.png

Given an equation or equations, it constructs a line whose equation(s) are the ones we have provided.

calc.line9.calc.png
calc.line9.plotter1.calc.png
calc.line9.plotter3d2.calc.png

Given two reals a and b (or one real and one infinity), it constructs the line that intersect with x-axis at x=a and with y-axis at y=b.

calc.line5.calc.png
calc.line5.plotter0.calc.png

Given a segment, it constructs a line that contains it.

calc.line6.calc.png
calc.line6.plotter0.calc.png

Given a triangle and an integer nn, it constructs the line that contains the nn-th edge.

calc.line7.calc.png
calc.line7.plotter0.calc.png

Given a polygon or polygon and an integer nn, it constructs the line that contains the nn-th edge.

calc.line8.calc.png