so basicaly I should put in into y=mx+b with X being the max or min respectivly?
Type: Posts; User: Isometric
so basicaly I should put in into y=mx+b with X being the max or min respectivly?
The client area is 510 pixel by 420 picels (fixed). this is devided by 30 to give the grid. The line will extended from one end to the other. I dont need the code tho I just need the formula.
Let me clarify...I want to know how I can calculate the coordinates to put into MoveToEx and LineTo functions.How would I calculate where the line goes through the edge of the client area?
What is the equation to find points on a line? My problem is that I need to draw a line with a variable slope and y intercept. Does anyone have any idea how to figure out the co-ordinates to begin...