Professional Documents
Culture Documents
L2 Computer Graphics
L2 Computer Graphics
• Magnitude of a scalar
The magnitude of 6 is 6.
The magnitude of a vector is computed as
follows:
Vector Notation
ur
• An arrow over a letter V V
6
Vector Notation
Adding Vectors Graphically
r r r
s a b
General procedure for adding two vectors
graphically:
rar
• (1) On paper, sketch vector a to some
convenient scale and at the proper angle.
r
• (2) Sketch vector b to the same scale,
with its tail at the head of vector , again at
the proper angle.
r
• (3) The vector sum s is the vector that r
r
extends from the tail of a to the head of b
.
Examples of Graphical addition
Addition of Vectors by Means of
Components
r r r
C A B
q
=
Subtraction
r r r r r
d a b a ( b)
Adding and subtracting vectors
Two important properties of vector additions
• R = [1,2,3]
How to describe a two-dimension vector?
If the head of a vector is (x2, y2) and its tail (x1, y1) , Its components are
x2-x1, and y2-y1 , for example (0,1), (3,3)
Matrix Algebra
A matrix is a rectangular array of numbers. By convention we say that an
(n×m) matrix has n rows and m columns; i.e. we write (height × width).
examples:
The identity matrix I is a special matrix that behaves like the number 1
when multiplying scalars (i.e. it has no numerical effect):
IA = A
The identity matrix has zeroes everywhere except the leading diagonal
which is set to 1,
2) Transpose Matricx
5) Rectangular Matrix
A rectangular matrix is an N x M matrix; that is, a
matrix with the different number of rows as columns
Check your progress