Documente Academic
Documente Profesional
Documente Cultură
Emmanuel Agu
Points, Scalars and Vectors
n Magnitude
n Direction
n NO position
n Can be added, scaled, rotated Length
n CG vectors: 2, 3 or 4
dimensions
Angle
Points
n Define vectors
Then vector addition:
a = (a1, a2 , a3 )
b = (b1,b2 , b3 ) a + b = (a1 + b1, a2 + b2 , a3 + b3 )
n and scalar, s
a
a+b
b
Vector Operations
as = (a1s, a2 s, a3 s ) a−b
= (a1 + (−b1 ), a2 + (−b2 ), a3 + (−b3 ))
a a-b
a
2.5a b
Vector Operations: Examples
as = (a1s, a2 s, a3 s ) = (12,30,36)
Affine Combination
a1 + a2 + .........an = 1
n Magnitude of a
| a |= a1 + a2 .......... + an
2 2 2
a1 + a2 .......... + an = 1
2 2 2
Dot Product (Scalar product)
n Dot product,
d = a ⋅ b = a1 ⋅ b1 + a2 ⋅ b2 ........ + a3 ⋅ b3
= 0 + 12 − 1 = 11
Dot Product
a⋅b = b ⋅a
n Linearity:
(a + c) ⋅ b = a ⋅ b + c ⋅ b
n Homogeneity:
( sa) ⋅ b = s (a ⋅ b)
n And
b2 = b ⋅ b
Angle Between Two Vectors
y
c b = ( b cos φb , b sin φb )
c = ( c cos φc , c sin φc )
θ b
φc b ⋅ c = b c cosθ
φb
x
b b
b
Sign of b.c:
c c c
b.c > 0
b.c = 0 b.c < 0
Angle Between Two Vectors
3 4
b̂ = , bˆ • cˆ = 0.85422 = cosθ
5 5
θ = 31.326o
Standard Unit Vectors
Define y
i = (1,0,0)
k i
j = (0,1,0)
k = (0,0,1)
0 j
z x
So that any vector,
v = (a, b, c ) = ai + bj + ck
Cross Product (Vector product)
If
a = (a x , a y , a z ) b = (bx , by , bz )
Then
a × b = (a y bz − a z by )i − (a x bz − a z bx ) j + (a x by − a y bx )k
Remember using determinant
i j k
ax ay az
bx by bz
axb
0
a b
Cross Product
a x b = -2i – 16j + 3k
References