# Synopsis

PDX_MSGT mth_InsertPoint2D(double pnt[2], long pntno, long *npnts, double (*array)[2])

# Purpose

Insert a 2D point into an array of points after pntno location

# Description

Inserts a 2D point into an array of points after pntno if the new point is not the same as the point at pntno, moving points up one index to insert the new point.

# Input

## pnt

The 2D point

## pntno

The point index to insert the point after

## npnts

The number of 2D points in the points array

## array

The 2D points array

# Output

## npnts

The number of 2D points in the points array

## array

The updated 2D points array

# Return

          MTH_NOERR
          MTH_SAMEPOINT
          .fi