paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
886 stars 103 forks source link

Units of orb.Bound.Pad() #105

Closed tlelson closed 2 years ago

tlelson commented 2 years ago

Perhaps I've missed something elsewhere in the documentation but what exactly are the units to this function.

It looks roughly like 10's Km's from trial and error.

https://pkg.go.dev/github.com/paulmach/orb@v0.7.1#Bound.Pad

paulmach commented 2 years ago

Pad just adds the number.

https://github.com/paulmach/orb/blob/6f098c10dc864dc4c5c0b993554f96c6fbb245cc/bound.go#L104-L112

tlelson commented 2 years ago

Thanks @paulmach. I think I understand the package on a whole much better now too.