Find values of A, B, C, and D for the case of a world window (10.0, 10.0, -6.0, 6.0) and a viewport (0, 600, 0, 400).
Computer Graphics using OpenGL
Let's first understand world window and view-port.
World window: The region on real world coordinate where selected object to be displayed.
Viewport: The region on device coordinate where graphics of selected object on world window is displayed. Since real world coordinate is different with respect to viewport coordinate coordinate, so one needs proper transformation from world window coordinate to viewport coordinate.
Below is windows and viewport is shown.
Coordinate convention is (Left, Top, Right,Bottom). In the above figure l stands for left, r for right, t for top and b for bottom. Suffix w for world window and suffix v for viewport.
Lets proceed to transformation:
pw is point in world window. We have to transfom it to pv in the viewport as shown in the figure. let pw=(xw,yw) and pv =(xv,yv). Now transformation is done by two operations scaling and translation. We have to find A,B, C and D. What are these values A, B, C and D? Let's understand.
Transformation is as follows:
Xv= A*Xw+C...............................(1)
Yv= B*Yw+D................................(2)
A is scaling factor in X direction, B is Scaling factor in Y direction, C is translation factor in X direction and D is Translation factor in Y direction.
Normalized point on Window is as follows:
Normalized point on viewport is as follows:
Normalized point is equivalent so
Now we can get Xv
or,
By comparing with equation (1) we can get
.................................(3)
Also we can get Yv
By comparing with equation (2) we can get
...................................(4)
in the question all coordinates are given:
World window (Xlw, Ytw, Xrw, Ybw)=(10.0, 10.0, -6.0, 6.0) Viewport (Xlv, Ytv, Xrv, Ybv)=(0, 600, 0, 400).
From equation 3
From equation 4
Thus A=0, B=50, C=0 and D=100.
Find values of A, B, C, and D for the case of a world window (10.0,...
A thermodynamic cycle ABC involving 2.5 mols of an ideal gas is shown below. (a) Find the absolute temperatures at points A, B, and C. (b) Find the work done by or on the system from A to B, from B to C, and from C to A (include the proper sign in each case). (c) Find the heat transferred to or from the system from A to B, from B to C, and from C to A (include the...
Given the values of A, B, C, D, E, and F (as shown below), what are the values of H and G? Your answer for each value MUST be either 0 or 1 Do NOT add any extra symbols or spaces. Attachments R1 R11 R6 R7 R1 R13 R14 R15 R8 R3 R4 R10 6.0 Points Question 13 of 14 When A -1, B-1, C-1, D 0, E 1, and F 0, the value of H will be - and...
16. Portfolio A,B’s beta is closest to:
a. 0.80 b. 0.92 c. 1.00 d. 1.08 e. 1.20
Assume the risk free rate is 2.0%. The SP500 is considered the market. Today (T-0), you invest $400 in Stock A and $600 in Stock B to create Portfolio A,B. Assume there are not taxes or dividends. The one year performance of the stocks and the market is summarized in the table below. Use this information to help answer questions 16-20. Total Return...
Find the values of a ,b ,c and d which satisfies the given matrix equation
linear algebra
2. Find the values of a, b, c, d, e, f. Do not guess. Show your work. 1 -3 3 c d -2 1 2 0-2 5 :( e 3 7 -2 -4 - 2 1 3. Find value of x, y that satisfy the following equation. Do not guess. Show your work. 63) =(-15)
Bluewhale is the largest animal ___ the world. A. on B. of C. in D. at
Burger World is considering opening a drive-through window for customer service. Management estimates that customers will arrive at the rate of 15 per hour. The server who will staff the drive-up window can service customers at the rate of one every three minutes. Assuming Poisson arrivals and exponential service, find: 40. Utilization of the teller A) 45% B) 55% C) 65% D) None of the above 41. Average number of customers in the waiting line A) 2.25 B) 5.22 C)...
6. (12 pts) (Polynomial decomposition) Find the values of a, b, c,d such that the following equation holds for all IER 275 - 93* +11.13 - 11+92 + 18 = (4 – 2) (1 - 3)(ax' +ba? +c+d)
6. Find values for a,b,c,d so that the curveyx + x + bx? + + has a tangent line at whose equation is y = 2x + 1 and a tangent line at: - I whose equation is y=2-3x
Consider the world in which there are only four propositions, A, B, C and D. How many models are there for the following sentences? You must explain what a model is, and justify your answer. a.) A & B & C & D b.) A V B V C c.) A & C