algorithm - Constructing a polygon (hexagon) given length of one side, 2 points and the perimeter? -


i have general question on algorithm use construct irregular polygon.

i have following scenario: have start , end position ship, know distance between 2 position (say 40km). using info, calculate remaining vertices of polygon includes 1 side, while other sides should equal in length , sum 200km (as matter of fact, user supplied length). therefore know perimeter of resulting polygon , 2 vertices make 1 of sides.

in short, how other 4 vertices each side besides calculated same size (and perimeter of hexagon adds 200 + initial side)?

thanks in advance!


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -