Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Geometry
                      • Geometry

                      Line

                      Reading time: 1min

                      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 A and B, it constructs a line passing through such points. You can also extract the corresponding coefficients through the slope() and intersect() commands.

                      Given a point A and a vector v, it constructs a line passing through A with direction vector v.

                      Given a point A and a real m, it constructs a line passing through A with slope m.

                      Given a vector c=[c1,c2,c3], it constructs a line whose equation is c1x+c2y+c3=0.

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

                      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.

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

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

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

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Amplitude
                      • Angle
                      • Append
                      • Arc
                      • Area

                      Line

                      Syntax Description

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand