# Synopsis

PDX_BOOL mth_CompareLocation(int ndim, double *a, double *b, double toler)

# Purpose

Compare two global Locations for coincidence.

# Description

The vectors a and b will be compared for equality with a tolerance toler. Equality of the two location vectors are compared based on the following consideration:

One of the vectors should fall into a Tolerance Ball at the tip of the other. For one vector to fall into the other vector's Tolerance Ball, it is required that the magnitude of the difference of the two vectors be less than the Tolerance Ball radius.

# Input

## ndim

Number of dimensions in vectors

## a

First location vector

## b

Second location vector

## toler

Tolerance within which locations are assumed to be the same.

# Tolerances

          MTH_ZERO_TOL
          .fi

# Return

PDX_TRUE

If vectors fall inside the Tolerance Ball, or their magnitude is already less than the tolerance.

.IP PDX_FALSE If vectors do not fall inside the specified tolerance. .LP