rout polygon horizont offset point param start start line param end end line param offset given offset rout polygon start end polygon rout polygon straight line offset point start point end offset polygon poli polygon poli add point start start offset offset math min start offset end offset offset math max start offset end offset poli add point start poli add point end poli add point end end poli 