geo-offset 0.2.0

Add margin and padding to geometric shapes
Documentation
# geo-offset

This crate contains algorithms to shrink and dilate various geometric shapes.

[![crate.io](https://img.shields.io/crates/v/geo-offset.svg)](https://crates.io/crates/geo-offset)
[![docs.rs](https://docs.rs/geo-offset/badge.svg)](https://docs.rs/geo-offset)

This code is a Rust port of the JS lib [polygon-offset](https://github.com/w8r/polygon-offset).

## Example

The following example shows how to compute an inflated line.
The [`offset`] method is provided by the [`Offset`] trait which is implemented for most [geo-types](https://docs.rs/geo-types/0.4.3/geo_types/).

```rust
use geo_types::{Coordinate, Line};
use geo_offset::Offset;

let line = Line::new(
    Coordinate { x: 0.0, y: 0.0 },
    Coordinate { x: 1.0, y: 8.0 },
);

let line_with_offset = line.offset(2.0)?;
```

[`Offset`]: offset/trait.Offset.html
[`offset`]: offset/trait.Offset.html#method.offset