Graphics Final

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

% Exam Template for UMTYMP and Math Department courses

%
% Using Philip Hirschhorn's exam.cls: http://www-math.mit.edu/~psh/#ExamCls
%
% run pdflatex on a finished exam at least three times to do the grading table on
front page.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%

% These lines can probably stay unchanged, although you can remove the last
% two packages if you're not making pictures with tikz.
\documentclass[11pt]{exam}
\RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, xspace, setspace}
\RequirePackage{tikz, pgflibraryplotmarks}

% By default LaTeX uses large margins. This doesn't work well on exams; problems
% end up in the "middle" of the page, reducing the amount of space for students
% to work on them.
\usepackage[margin=1in]{geometry}
%\usepackage{graphicx}

% Here's where you edit the Class, Exam, Date, etc.


\newcommand{\class}{Computer Graphics (CSCS 453)}
\newcommand{\term}{Spring 2016}
\newcommand{\examnum}{Final Exam}
\newcommand{\examdate}{18 May 2016}
\newcommand{\timelimit}{60 minutes}

% For an exam, single spacing is most appropriate


\singlespacing
% \onehalfspacing
% \doublespacing

% For an exam, we generally want to turn off paragraph indentation


\parindent 0ex

\begin{document}

% These commands set up the running header on the top of the exam pages
\pagestyle{head}
\firstpageheader{}{}{}
\runningheader{\class}{\examnum\ - Page \thepage\ of \numpages}{\examdate}
\runningheadrule

\begin{flushright}
\begin{tabular}{p{2.8in} r l}
\textbf{\class} & \textbf{Name:} & \makebox[2in]{\hrulefill}\\
\textbf{\term} &&\\
\textbf{\examnum} &&\\
\textbf{\examdate} &&\\
\textbf{Time Limit: \timelimit} & Roll no: & \makebox[2in]{\hrulefill}
\end{tabular}\\
\end{flushright}
\rule[1ex]{\textwidth}{.1pt}

This exam contains \numpages\ pages (including this cover page) and
\numquestions\ problems. Check to see if any pages are missing. Enter
all requested information on the top of this page, and put your initials
on the top of every page, in case the pages become separated.\\

Following rules apply:\\

\begin{minipage}[t]{3.7in}
\vspace{0pt}
\begin{itemize}
\item You may \textbf{not} use your books, notes, mobile phone or smart watch on
this exam.

\item Calculators are allowed but you are \textbf{NOT} allowed to share.

\item Organize your work, in a reasonably neat and coherent way, in the space
provided. Work scattered all over the page without a clear ordering will receive \
textbf{NO} credit.

\item Mysterious or unsupported answers will receive \textbf{ZERO} credit. Write in


a clear intelligible handwriting.

\item Select only one option for the multiple choice or true/faluse questions.
Cutting, overwriting, selecting multiple options will receive \textbf{NO} credit.

\item If you need more space, use the back of the pages; clearly indicate when you
have done this.

\end{itemize}

Do not write in the table to the right.


\end{minipage}
\hfill
\begin{minipage}[t]{2.3in}
\vspace{0pt}
%\cellwidth{3em}
\gradetablestretch{2}
\vqword{Problem}
\addpoints % required here by exam.cls, even though questions haven't started yet.
\gradetable[v]%[pages] % Use [pages] to have grading table by page instead of
question

\end{minipage}
\newpage % End of cover page

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%
% See http://www-math.mit.edu/~psh/#ExamCls for full documentation, but the
questions
% below give an idea of how to write questions [with parts] and have the points
% tracked automatically on the cover page.
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%

\begin{questions}
\addpoints
\question[3] Compute the dot product of vectors \textbf{a} = (6, 8, 4) and \
textbf{b} = (9, 12, 6). What is the angle between \textbf{a} and \textbf{b}?
\vspace{2.5in}
\addpoints
\question[3] What is the purpose of the $4\times4$ homogeneous projection matrix?
What are the different types of projection, briefly describe each of them.

\vspace{2.5in}
\addpoints
\question[6] Given two vectors \textbf{b} and \textbf{c} and their cross product \
textbf{a} = \textbf{b} $\times$ \textbf{c}. What is the cross product \textbf{c} $\
times$ \textbf{b}, \textbf{b} $\times$ \textbf{a}, and \textbf{a} $\times$ \
textbf{a}?

\newpage
\addpoints
\question[6] Given four homogeneous points $\textbf{p}_0$ = (9, 12, 6, 1.5), $\
textbf{p}_1$ = (12, 16, 8, 2), $\textbf{p}_2$ = (9, 12, 6, 1), and $\textbf{p}_3$ =
(18, 24, 12, 3). All of them except one represent the same 3D point. What is that
3D point, and which of the homogeneous points $\textbf{p}_0$,...$\textbf{p}_3$
represents a different 3D point?

\vspace{3.0in}
\addpoints
\question[8] Given a cubic B\'{e}zier curve $\textbf{x}(t)$, which is defined by
control points $\textbf{p}_0$, $\textbf{p}_1$, $\textbf{p}_2$, $\textbf{p}_3$.
Derive the equation $\textbf{x}'(t)$ for the tangent of the curve at each value of
$t$. Evaluate $\textbf{x}'(0)$ and $\textbf{x}'(1)$.

Remember that the cubic B\'{e}zier polynomial is:

$$B=(1-t)^{3}p_{0} + 3(1-t)^{2}tp_{1} + 3(1-t)t^{2}p_{2} + t^{3}p_{3}$$

\newpage
\addpoints
\question[8] Derive the $3\times3$ homogeneous matrix that achieves the
transformation shown in the figure.
\begin{center}
\includegraphics[width=.6\textwidth]{images/img1}
\end{center}

\newpage
\noaddpoints
\question[16] A rotation matrix around the z-axis is given by:

$$\textbf{R}_z(\theta) = \begin{bmatrix}
\cos\left(\theta\right) & -\sin\left(\theta\right) & 0 & 0 \\
\sin\left(\theta\right) & \cos\left(\theta\right) & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \\
\end{bmatrix}$$

Given the three matrices \textbf{A}: translation along the vector \textbf{v} = (4,
0, 2), \textbf{B}: rotation 90 degrees around the z-axis and \textbf{C}: a non-
uniform scaling with $2$ in $x$, $3$ in $y$ and $4$ in $z$.
\addpoints
\begin{parts}
\part[5] Give the $4\times4$ matrix form of each of \textbf{A}, \textbf{B}
and \textbf{C}.

\vspace{4.0in}
\part[3] Given the point $p$ = (1, 2, 3, 1), what is the location of $q$ = \
textbf{CAB}$p$?

\newpage
\part[3] Give an example of two (different) 2D transform matrices \textbf{M}
and \textbf{N} such that \textbf{MN} = \textbf{NM}. You are not allowed to use the
identity or zero matrix as \textbf{M} or \textbf{N}.

\vspace{3.0in}
\part[5] Describe the transform needed to transform the triangle from \
textbf{A} to \textbf{B} in figure below, as a set of matrices: \textit{(You are
free to assume a suitable origin)}
\begin{center}
\includegraphics[width=.3\textwidth]{images/img2}
\end{center}

\end{parts}

\end{questions}

\end{document}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy