CSE169_02

CSE169_02 - Linear Algebra Review CSE169: Computer...

Info iconThis preview shows pages 1–22. Sign up to view the full content.

View Full Document Right Arrow Icon
Linear Algebra Review CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Coordinate Systems x y z Right handed coordinate system
Background image of page 2
Vector Arithmetic [ ] [ ] [ ] [ ] [ ] [ ] z y x z y x z z y y x x z z y y x x z y x z y x sa sa sa s a a a b a b a b a b a b a b a b b b a a a = - - - = - - - - = - + + + = + = = a a b a b a b a
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Vector Magnitude The magnitude (length) of a vector is: Unit vector (magnitude=1.0) 2 2 2 z y x v v v + + = v v v
Background image of page 4
Dot Product θ cos b a b a b a = = + + = i i z z y y x x b a b a b a b a
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example: Angle Between Vectors How do you find the angle θ between vectors a and b ? a b θ
Background image of page 6
Example: Angle Between Vectors = = = - b a b a b a b a b a b a 1 cos cos cos θ a b θ
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Dot Products with Unit Vectors b θ a a·b = 0 0 < a·b < 1 a·b = -1 a·b = 1 -1 < a·b < 0 ( 29 θ cos 0 . 1 = = = b a b a a·b
Background image of page 8
Dot Products with Non-Unit Vectors If a and b are arbitrary (non-unit) vectors, then the following are still true: If θ < 90º then a · b > 0 If θ = 90º then a · b = 0 If θ > 90º then a · b < 0
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Dot Products with One Unit Vector a u a·u If | u |=1.0 then a · u is the length of the projection of a onto u
Background image of page 10
Example: Distance to Plane A plane is described by a point p on the plane and a unit normal n . Find the distance from point x to the plane p n • x
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example: Distance to Plane The distance is the length of the projection of x - p onto n : p n • x x-p ( 29 n p x - = dist
Background image of page 12
Cross Product [ ] x y y x z x x z y z z y z y x z y x b a b a b a b a b a b a b b b a a a k j i - - - = × = × b a b a
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Properties of the Cross Product b a b a b a b a b a × = × = × = × 0 sin θ area of parallelogram ab is perpendicular to both a and b , in the direction defined by the right hand rule if a and b are parallel
Background image of page 14
Example: Area of a Triangle Find the area of the triangle defined by 3D points a , b , and c a b c
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example: Area of a Triangle ( 29 ( 29 a c a b - × - = 2 1 area b-a c-a a b c
Background image of page 16
Example: Alignment to Target An object is at position p with a unit length heading of h . We want to rotate it so that the heading is facing some target t . Find a unit axis a and an angle θ to rotate around. p h t
Background image of page 17

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example: Alignment to Target p h t t-p θ a ( 29 ( 29 ( 29 ( 29 - - = - × - × = - p t p t h p t h p t h a 1 cos θ
Background image of page 18
Trigonometry 1.0 cos θ sin θ θ cos 2 θ + sin 2 θ = 1
Background image of page 19

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon