Description
Question 1: Vectors are very important to computer graphics and they are used to represent both locations in space (points) and directions. Assume you have three points in 2D space, represented by a=[ππ₯,ππ¦], b=[ππ₯,ππ¦], and c=[ππ₯,ππ¦].
a. How do you find the direction vector v that points from a toward b?
b. How is the length,βπ―β, of v computed?
c. A unit vector,π―Μ, in the direction v is a vector in the same direction as v but with length 1. How do you compute π―Μ? Computing π―Μ is also referred to as normalizing v.
Question 2: Consider two vectors in 3D, a and b.
a. How is the dot product πβπ computed?
b. What is the relationship between πβπ and the angle between a and b?
c. How is the cross product vector π=πΓπ computed?
d. What is the geometric relationship between a, b and c?
e. What is the geometric relationship between πΓπ and πΓπ?
f. What is the relationship between πΓπ and the angle between a and b?
Question 3: What is the solution to the following quadratic equation?
π₯2+3π₯+2=0
Question 4: What is the distance from a 2D point π©=[ππ₯,ππ¦] to a line ππ₯+ππ¦+π=0?
Question 5: This question concerns the definition of a 3D parametric line.
a. What is the minimum number of points needed to define a unique line in 3D that passes through all the points? What other conditions must the points satisfy for the line to be unique?
b. Given more than the minimum number of points, is it in general possible to find one line that passes through all of them?
c. A 3D parametric line is usually defined as π©=π¨+π‘π. Label your points p1, p2, etc. Find two vectors o and d in terms of the points.
Question 6: What is the result of the following matrix multiplication of a vector? [12541123115][213]