Synopsis

PDX_MSGT gdx_CheckCurveDegenerate(long option, MDA_PTR cur, double tol, PDX_BOOL *degen)

Purpose

Check if a GDX curve is degenerate.

Description

This routine determines whether or not a curve is degenerate, to within a user-specified tolerance.

Input

option

Not used.

cur

The curve to be checked.

tol

The tolerance to use. The curve is considered to be degenerate if the diagonal of its minmax box is less than or equal to this tolerance.

Output

degen

Boolean flag indicating degeneracy: PDX_TRUE = degenerate. PDX_FALSE = not degenerate.

Return

      Low level error return
      .fi