Need the co-ordinates of innerPolygon

Posted by user960567 on Game Development See other posts from Game Development or by user960567
Published on 2012-04-12T07:17:58Z Indexed on 2012/04/12 11:44 UTC
Read the original article Hit count: 250

Filed under:
|
|
|
|

Let say I have this diagram,

enter image description here

Given that i have all the co-ordinates of outer polygon and the distance between inner and outer polygon is d is also given. How to calculate the inner polygon co-ordinates? Edit: I was able to solved the issue by getting the mid-points of all lines. From these mid-points I can move d distance, So I can get three points. No I have 3 points and 3 slopes. From this, I can get three new equations. Simultaneously, solving the equation get the 3 points.

© Game Development or respective owner

Related posts about XNA

Related posts about c++