MotorXP-PM Scripting API
    Preparing search index...

    Function Segment

    • Creates a line segment from two points or four coordinates. Throws TypeError for any other number of arguments.

      Parameters

      Returns Segment

    • Creates a line segment from two points or four coordinates. Throws TypeError for any other number of arguments.

      Parameters

      • x1: number

        Start point X coordinate.

      • y1: number

        Start point Y coordinate.

      • x2: number

        End point X coordinate.

      • y2: number

        End point Y coordinate.

      Returns Segment