Transformation matrix that maps a window
- by gbhall
I'm currently learning OpenGL at uni, and they give us questions to help us learn (these are not worth anything), however I'm stuck on this one question and would have to travel over an hour and a half to uni for an answer.
How do I do this question? Please include as many steps as you can, I want to be able to follow exactly how to do this.
Find the transformation that maps a window whose lower left corner is at (1,1)
and upper right corner is at (3,5) onto:
The entire device screen whose dimension is (600, 500)
A viewport that has lower left corner at (100,100) and upper right corner
at (400,400)
Edit: Damn sorry I should have added I am meant to find the matrix, so no code.