Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drawing polygon and calculate area!!!

 
dedo mraz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have this code which allows you to draw polygon but i don't know how to implement the formula to calculate the area of the polygon (the formula is in the end of the code).


 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the 'C' function to calculate area is flawed. You should go back to the site you obtained it from and make sure you have copied it correctly. Pay particular attention to the signs of the terms.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic