Академический Документы
Профессиональный Документы
Культура Документы
Semester I
(RUPP)
Semester I
1 / 36
Overview
Cartesian Coordinate Systems
Vectors
I
Vector Notations
Negating a Vector
(RUPP)
Semester I
2 / 36
2D Coordinate Spaces
Consist of a special location
called the origin
Exist two straight lines that pass
through the origin
Two axes are perpendicular to
each other
(RUPP)
Semester I
3 / 36
(RUPP)
Semester I
4 / 36
(RUPP)
Semester I
5 / 36
3D Cartesian Space
Extend 2D into 3D by addin a
3rd axis
xy, xz, and yz planes
(RUPP)
Semester I
6 / 36
(RUPP)
Semester I
7 / 36
(RUPP)
Semester I
8 / 36
(RUPP)
Semester I
9 / 36
Vector
(RUPP)
Semester I
10 / 36
Vector
Vector Notations
There are two ways to write vector:
Column vector
x
y
z
Row vector
x y z
(RUPP)
Semester I
11 / 36
Vector
Vector Notations
In math, integer indices are used to access the elements of vector
(RUPP)
Semester I
12 / 36
Vector
(RUPP)
Semester I
13 / 36
Vector
(RUPP)
Semester I
14 / 36
Vector
(RUPP)
Semester I
15 / 36
Vector
Vector Quantities
Displacement Take three step forward
Velocity I am traveling northeast at 50 mph
Scalar Quantities
Distance
Speed
(RUPP)
Semester I
16 / 36
Vector
(RUPP)
Semester I
17 / 36
Vector
0
0
0=
....
....
0
The Zero vector consist of a magnitude of zero
The Zero vector has no direction
The Zero vector of a given dimesion is the additive identity for the
set of vectors of that dimension
Lecturer: Kor Sokchea
(RUPP)
Semester I
18 / 36
Vector
(RUPP)
Semester I
19 / 36
Vector
Negating a Vector
The negation operation can be applied to vectors
Defintion
Every vector v has an additive inverse -v of the same dimension
such that:
v + (v) = 0
(RUPP)
Semester I
20 / 36
Vector
Negating a Vector
Official Linear Algebra Rules
To negate a vector of any dimension, we simply negate each
component of the vector as folows:
a1
a1
a2 a2
. .
. = .
an1 an1
an
(RUPP)
an
Semester I
21 / 36
Vector
(RUPP)
Semester I
22 / 36
Vector
a1
a2
k
. =
.
an1
an
(RUPP)
ka1
a1
ka2
a2
.
.
. k = .
.
.
kan1
an1
kan
an
Semester I
23 / 36
Vector
vx /k
1
=
v = vy /k
k
k
vz /k
v
(RUPP)
Semester I
24 / 36
Vector
(RUPP)
Semester I
25 / 36
Vector
Vector Addition
Two vectors can be added if they are of the same dimension
a1
b1
a1
a2
a2 b2
. .
. + . =
. .
an1
an1 bn1
an
an
bn
(RUPP)
+ b1
+ b2
+ bn2
+ bn
Semester I
26 / 36
Vector
Vector Subtraction
Two vectors can be subtracted if they are of the same dimension
b1
a1
b1
a1
a2 b2
a2 b2
. .
. .
. . = . + . =
. .
. .
an1 bn1
an1 bn1
bn
an
an
bn
(RUPP)
a1 b1
a2 b2
an1 bn2
an bn
Semester I
27 / 36
Vector
(RUPP)
Semester I
28 / 36
Vector
Example
add the vectors a = (8,13) and b = (26,7)
c=a+b
c = (8,13) + (26,7) = (8+26,13+7) = (34,20)
(RUPP)
Semester I
29 / 36
Vector
example
Subtract k = (6, 5) from v = (8, 3)
a=v+k
a = (8, 3) + (6, 5) = (8, 3) + (6,5) = (86,35) = (2,2)
Lecturer: Kor Sokchea
(RUPP)
Semester I
30 / 36
Vector
v
u n
q
uX
2
2
kvk = t
vi2 = v12 + v12 + ... + vn1
+ vn
i=1
Example
kvk =
kvk =
(RUPP)
q
vx2 + vy2
(f or2Dvectorv)
q
vx2 + vy2 + vz2
(f or3Dvectorv)
Semester I
31 / 36
Vector
Unit Vector
A unit vectors or normalized vectors are a vector that has a
magnitude of one
Some vectors become shorter after normalization if their length was
greater than 1
Some vectors become longer after normalization if their length was
less than 1
v
v
=
kvk
(RUPP)
Semester I
32 / 36
Vector
b1
a1
a2 b2
... ...
an1 bn1
bn
an
a.b=
n
X
ai bi
i=1
(RUPP)
Semester I
33 / 36
Vector
x1
x2
y1 z2 z1 y2
y1 y2 = z1 x2 x1 z2
z1
z2
x1 y2 y1 x2
(RUPP)
Semester I
34 / 36
Literature
Literature
1
Foley, J. D., Van Dam, A., Feiner, S.K., Hughes, J. F., &
Phillips R. L. (1996). Introduction to Computer Graphics.
Addison-Wesley
(RUPP)
Semester I
35 / 36
Literature
Literature
1
Dunn, F., & Parberry, I. (2011). 3D math primer for graphics and
game development. CRC Press.
(RUPP)
Semester I
36 / 36