Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a few hexagon shaped regions on my form that lie next to each other. Similar to a honeycomb structure.

 

How do I detect using the mouse x and y what region I have clicked in. I will run trough a loop that create points for the 6 corners of the hexagon to give it its bounds.

 

It would be simple enough if it was a rectangle, but this is a little different. I saw on another post that you can use a Contains() method to see if it is in there.

 

But since I am here asking this question, it is obvious I can't find how to do it.

 

 

Any help would be great.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...