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 and , it constructs a line passing through such points. You can also extract the corresponding coefficients through the slope()
and intersect()
commands.
Given a point and a vector , it constructs a line passing through with direction vector .
Given a point and a real , it constructs a line passing through with slope .
Given a vector , it constructs a line whose equation is .
Given an equation or equations, it constructs a line whose equation(s) are the ones we have provided.
Given two reals and (or one real and one infinity), it constructs the line that intersect with x-axis at and with y-axis at .
Given a segment, it constructs a line that contains it.
Given a triangle and an integer , it constructs the line that contains the -th edge.
Given a polygon or polygon and an integer , it constructs the line that contains the -th edge.