Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create Textbox with ellipse button Pin
Ravi Bhavnani18-Mar-14 6:06
professionalRavi Bhavnani18-Mar-14 6:06 
AnswerMSDN solution Pin
Ravi Bhavnani18-Mar-14 6:08
professionalRavi Bhavnani18-Mar-14 6:08 
AnswerRe: How to create Textbox with ellipse button Pin
BillWoodruff18-Mar-14 6:01
professionalBillWoodruff18-Mar-14 6:01 
GeneralRe: How to create Textbox with ellipse button Pin
ahmed_one18-Mar-14 6:18
ahmed_one18-Mar-14 6:18 
GeneralRe: How to create Textbox with ellipse button Pin
BillWoodruff18-Mar-14 7:00
professionalBillWoodruff18-Mar-14 7:00 
AnswerRe: How to create Textbox with ellipse button Pin
Alan N18-Mar-14 7:36
Alan N18-Mar-14 7:36 
GeneralRe: How to create Textbox with ellipse button Pin
ahmed_one18-Mar-14 18:12
ahmed_one18-Mar-14 18:12 
QuestionCalculating the area of a self intersecting polygon Pin
Member 1067580817-Mar-14 23:38
Member 1067580817-Mar-14 23:38 
The area of a normal polygon can be calculated using the shoelace formula however one of its limitations is that it must not be complex. I am trying to calculate this given an array of co-ordinates. For the example points:

2,2
1,1
0,2
1,3
1,0

I have been able to construct a script which returns any valid interception points, in the above case this was:

1,1

It then reprints the points in order (including the interception points) in an array with an additional column which is equal to one if the point was added due to it being a valid interception point. This turned out to be:

2,2,0
1,1,0
0,2,0
1,3,0
1,1,1
1,0,0

Now the interception co-ordinate is added in the correct spot to the array of co-ordinates. The task which I am having problems with is being able to calculate the area of a self intercepting polygon. I understand that a complex polygon may be broken up into several simple polygons but do not know how you could write code to do this, or if knowing the interception point the area can be calculated without splitting it up. Any help would be appreciated, Cheers.

I have tried using the logic that four lines will point away from the interception and if you know two of them are connected by another line then that area must be one of the enclosed areas but for more complex polygons (which have multiple intercepts) this does not always work.
SuggestionRe: Calculating the area of a self intersecting polygon Pin
Richard MacCutchan18-Mar-14 0:47
mveRichard MacCutchan18-Mar-14 0:47 
QuestionHow to solve a non linear Equation is Visual studio 2012/C# Pin
Nadish Anand17-Mar-14 15:06
Nadish Anand17-Mar-14 15:06 
AnswerRe: How to solve a non linear Equation is Visual studio 2012/C# Pin
Bernhard Hiller17-Mar-14 22:14
Bernhard Hiller17-Mar-14 22:14 
AnswerRe: How to solve a non linear Equation is Visual studio 2012/C# Pin
Matt T Heffron18-Mar-14 8:30
professionalMatt T Heffron18-Mar-14 8:30 
QuestionWhat is used to identify a Generic Type Parameter? Pin
Jörgen Andersson16-Mar-14 10:33
professionalJörgen Andersson16-Mar-14 10:33 
AnswerRe: What is used to identify a Generic Type Parameter? Pin
BillWoodruff16-Mar-14 20:01
professionalBillWoodruff16-Mar-14 20:01 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson16-Mar-14 20:59
professionalJörgen Andersson16-Mar-14 20:59 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 12:06
mvePete O'Hanlon17-Mar-14 12:06 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
BillWoodruff17-Mar-14 18:51
professionalBillWoodruff17-Mar-14 18:51 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 21:15
mvePete O'Hanlon17-Mar-14 21:15 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson17-Mar-14 21:53
professionalJörgen Andersson17-Mar-14 21:53 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 22:42
mvePete O'Hanlon17-Mar-14 22:42 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson17-Mar-14 23:43
professionalJörgen Andersson17-Mar-14 23:43 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon18-Mar-14 0:50
mvePete O'Hanlon18-Mar-14 0:50 
QuestionAutomapper exception when converting object with inheriting members Pin
impeham16-Mar-14 5:19
impeham16-Mar-14 5:19 
QuestionHow to access Advanced Class with API Pin
Member 1063699816-Mar-14 4:25
Member 1063699816-Mar-14 4:25 
AnswerRe: How to access Advanced Class with API Pin
Dave Kreskowiak16-Mar-14 7:31
mveDave Kreskowiak16-Mar-14 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.