Hey math geniuses, I hope this is the right forums, and I have a rather difficult math question here.
I'm learning games development and currently have a project in the making using DarkBasic, one thing I always fail on is math, luckily the language I use has many libraries of functions available that take a load off, especially when it comes to mathimatics.
Programming logic is no problem for me, but math is where I fail miserably
Anyways what I'm getting to is, I have a virtual world which has a size of 2000.0 x 2000.0, however the actual coordinates for the world are:
x = -1000.0 (West) to +1000.0 (East)
z = -1000.0 (South) to +1000.0 (North)
And 0,0 would be dead center.
I want to create a birds-eye view mini-map of the world, and plot a mark where I am on the mini-map relative to the vitual world, the mini-map would be 500 x 500 pixels, in programming terms in case you don't know this would be:
x = 0 (Left) to 500 (Right)
z = 0 (Top) to 500 (Bottom).
And 250,250 would be dead center, now how would I do the math for this?