# Synopsis

PDX_BOOL gdx_TestCurveContinuity(long option, double *cont_toler, int test_deriv, double (*deriv_rght)[3], double (*deriv_left)[3])

# Purpose

Test a curve for specific derivative continuity

# Description

Compares the specified derivatives for curve continuity. Note: for curve continuity check, this function checks one derivative at a time. The decision about curve continuity is made in the calling function based on continuity of all derivatives. The derivatives are assumed to have been evaluated from the left and the right. For the GDX_GTEST option, the test for continuity is based on G continuity values if the test_deriv is <= 2, otherwise the derivatives are compared for C continuity.

# Input

## option

### GDX_GTEST

Test for G continuity up to test_deriv of 2

## cont_toler

Curve continuity tolerance. For a curve parameter to be considered continuous, The respected difference from right and left must fall below the specified tolerance. .nf [0] = Model Space Distance Difference (G0, C0) [1] = Radian angular Difference (G1) [2] = Curvature Difference (G2) [3] = Normalized Vector Difference (Cn) .fi

## test_deriv

The curve degree of the derivatives being tested for continuity

## deriv_rght

The derivative(s) calculated from the right

## deriv_left

The derivative(s) calculated from the left

# Tolerances

          NORMAL_MAG_TOL
          .fi

# Return

          PDX_TRUE - The derivatives are continuous within cont_toler
          PDX_FALSE - The derivatives are not continuous within cont_toler
          .fi