I'm trying to plot points on a hexagon where the numbers are drawn in the middle of the line of the hexagon, sort of like this:
![Name: Hexagon.jpg
Views: 69
Size: 96.3 KB]()
I'm using visual basic.net 2010 and using a Queue to store the list of points(as well as a separate queue to store the numbers) and right now I'm trying something like this:
My issue is that the numbers are plotted out all crazy. I know it's nothing to do with how my coding is, I'm almost positive I'm not doing the math right to plot the points. How would I set out the location of the numbers and deal with resizing? By the way this is how the numbers currently look plotted:
![Name: hexagon.jpg
Views: 44
Size: 4.0 KB]()
I'm using visual basic.net 2010 and using a Queue to store the list of points(as well as a separate queue to store the numbers) and right now I'm trying something like this:
vb.net Code:
pts.Clear() Dim upper_left As New Point(10, CInt(Me.Height / 2) - CInt(Me.Height / 10)) Dim upper_right As New Point(Me.Width - 10, CInt(Me.Height / 2) - CInt(Me.Height / 10)) Dim middle_left As New Point(5, CInt(Me.Height / 2)) Dim middle_right As New Point(Me.Width - 5, CInt(Me.Height / 2)) Dim lower_left As New Point(10, Me.Height - CInt(Me.Height / 2) + CInt(Me.Height / 10)) Dim lower_right As New Point(Me.Width - 10, Me.Height - CInt(Me.Height / 2) + CInt(Me.Height / 10)) pts.Enqueue(upper_left) pts.Enqueue(upper_right) pts.Enqueue(middle_left) pts.Enqueue(middle_right) pts.Enqueue(lower_left) pts.Enqueue(lower_right)
My issue is that the numbers are plotted out all crazy. I know it's nothing to do with how my coding is, I'm almost positive I'm not doing the math right to plot the points. How would I set out the location of the numbers and deal with resizing? By the way this is how the numbers currently look plotted: