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

                      Segment

                      Reading time: 1min

                      Constructs a segment.

                      Syntax

                      segment(Point, Point)
                      
                      segment(Point, Vector)
                      
                      segment(Triangle, Integer)
                      
                      segment(Polygon | Polygonal, Integer)
                      
                      segment(Point)
                      
                      segment(Vector)
                      
                      segment(Line)
                      

                      Description

                      Given two points A and B, constructs the segment AB¯.

                      Given a point A and a vector v, constructs the segment AB¯, where B=A+v.

                      Following the usual notation for a triangle: vertices A1, A2 and A3 and sides a1, a2 and a3; given an integer i, this function returns the segment ai.

                      Given a polygon or polygonal p and an integer i, returns the i-th side of p.

                      Given a point P, constructs the segment OP¯.

                      Given a vector v, constructs the segment OP¯, where P=O+v

                      Returns a segment that belongs to the given line.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Amplitude
                      • Angle
                      • Append
                      • Arc
                      • Area

                      Segment

                      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