This directory contains computer code in "C" for cave survey related functions. (And some non-survey housekeeping.)

This code is still being worked on, and may change from day to day.

No warranty, express or implied, should be assumed for these code fragments. They are for educational and demonstration purposes, and may contain major errors.

Before sending in an error report on a routine, make sure you have the current version.

It is, at best, a pain to down load each routine one at a time as html pages. Because of this there is also a Survey Routine Unix C Tarball of the complete distribution. (There is also a GNU zip'ed version and a bzip2'd version of the C tarball.

Routines that are almost ready for review have .html files to go with them. Routines that don't have matching .html files are still being debugged, and may not even compile.

**Programs**:
Various programs. (Not yet very useful) Mostly just quick
hacks I've put together to make it easier for me to prepare
examples.

- Minor Support (Help run examples for documentation)
- invert22.c Invert a 2x2 matrix.
- invert33.c Invert a 3x3 matrix.
- invert44.c Invert a 4x4 matrix.

- Demo programs.

**Error handling**:
Routines to handle error codes.

**Vectors**: Routines to handle vectors.

- vec.h
- vec.c
- tests
- Support routines (Such as print routines)

- mat.h
- mat.c
- tests
- Support Routines (Such as print routines)
- Matrix inverse
- Partitioned Matrices

**Survey 3d stuff** (coordinates, weights, covariances)

- survey3d.h
- survey3d.c
- tests
- Support Routines (such as print routines)

**Parsing**

- Token scanning
- Parsing

**Graphics**

**Unit conversions**

- English/traditional
- English/survey
- Metric

Coordinate Transformations

Subproblems

- Triangulation (for ceiling heights...)
- Trilateralization (for completeness)

Weighted averages

- Three Dimensional version.
- One dimensional version (Is this needed?)

Distributing based on weights.

- Three Dimensional version.

Adjustments

- traverse
- Net

FAST Euclidean Norm (Distance between points) (Done in a very numericly stable fashion)

Housekeeping routines for test programs

This page is http://www.cc.utah.edu/~nahaj/cave/survey/code/c/ © Copyright 2000 by John Halleck, All Rights Reserved. This snapshot was last modified on August 14th, 2002