/* daixyz.h * (C) Copyright 1999 by John Halleck * All rights reserved. */ /* Version of August 13th, 1999 */ #ifndef DAIXYZ #define DAIXYZ 1 /* This package deals with the conversion of standard cave survey * Distance, Azimuth, and Inclination (DAI) information to XYZ form. * In addition to the actual conversion, it has routines to compute * the covariance matrix of the measurements. */ #include "errors.h" /* Standard package wide return codes. */ #include "survey3d.h" /* Standard weight and covariance matrices. */ typedef double xyz[3]; /* 3d coordinate */ typedef double dai[3]; /* Initial data */ /* dai[0] is Distance */ /* dai[1] is Azimuth from north IN RADIANS */ /* dai[2] is Inclination from horizontal IN RADIANS */ /* ---------------- ROUTINES ------------------------ */ /* Check a data matrix for numerical reasonableness. */ extern error covarok (covariance given); /* Returns ERRnumeric if it is bad */ /* Convert from DAI to XYZ form. */ extern error daixyz (xyz result, /* The final X, Y, Z */ covariance shotcovariance, /* covariance matrix of the result */ dai data, /* Initial data */ covariance datacovariance /* Covariance of data */ ); #endif