On that note, maybe someone could look over my plotting functions. They should be pretty easy to understand; they're converting game coordinates to coordinates on my program GUI:
Code:
Function GameCoordToScreenX(ByVal playerCoordsX, ByVal playerCoordsY, ByVal objCoordsX, ByVal objCoordsY, ByVal scale) As Integer
Dim relativeX = objCoordsX - playerCoordsX
Dim relativeY = objCoordsY - playerCoordsY
Dim relativeAngle = Math.Atan(relativeY / relativeX)
Dim relativeDist = Math.Sqrt(relativeX * relativeX + relativeY * relativeY)
Dim sPosX = (Panel1.Size.Width / 2) + (scale * relativeAngle * Math.Cos(relativeDist))
Return sPosX
End Function
Function GameCoordToScreenY(ByVal playerCoordsX, ByVal playerCoordsY, ByVal objCoordsX, ByVal objCoordsY, ByVal scale) As Integer
Dim relativeX = objCoordsX - playerCoordsX
Dim relativeY = objCoordsY - playerCoordsY
Dim relativeAngle = Math.Atan(relativeY / relativeX)
Dim relativeDist = Math.Sqrt(relativeX * relativeX + relativeY * relativeY)
Dim sPosY = (Panel1.Size.Height / 2) + (scale * relativeAngle * Math.Sin(relativeDist))
Return sPosY
End Function
I'll try your method out as well, Gamer. Thanks.