SourceNav

parsing of SourceEngine .nav files

Usage

This library is currently focused on getting the z-height from an x/y coordinate in a map and the api is tailored towards that usage. For other usages the raw navigation areas are exposed.

```rust use sourcenav::getareatree;

fn main() -> Result<(), Box> { let file = std::fs::read("data/plbadwater.nav")?; let tree = getarea_tree(file)?;

assert_eq!(220.83125,  tree.find_best_height(320.0, -1030.0, 0.0));

Ok(())

}

```

Credits and Licence

This library is largely based on gonav, a parser for .nav files written in Go and is licenced under AGPL-3.0.