2d computer graphics geometry and transformations
play

2D Computer Graphics Geometry and Transformations Points defjned by - PowerPoint PPT Presentation

Summer 2019 Diego Nehab IMPA 1 2D Computer Graphics Geometry and Transformations Points defjned by pair of coordinates Signed distances to perpendicular directed lines Point where lines cross is the origin Basis of analytic geometry


  1. Summer 2019 Diego Nehab IMPA 1 2D Computer Graphics

  2. Geometry and Transformations

  3. Points defjned by pair of coordinates • Signed distances to perpendicular directed lines • Point where lines cross is the origin Basis of analytic geometry • Connection between Euclidean geometry and algebra • Describe shapes with equations • E.g., lines and circles 2 Cartesian coordinate system

  4. Points defjned by pair of coordinates • Signed distances to perpendicular directed lines • Point where lines cross is the origin Basis of analytic geometry • Connection between Euclidean geometry and algebra • Describe shapes with equations • E.g., lines and circles 2 Cartesian coordinate system

  5. Points defjned by pair of coordinates • Signed distances to perpendicular directed lines • Point where lines cross is the origin Basis of analytic geometry • Connection between Euclidean geometry and algebra • Describe shapes with equations • E.g., lines and circles 2 Cartesian coordinate system

  6. Distance between line and point? Find intersection between line and circle? Find intersection between two circles? Prove that the medians of a triangle are concurrent? 3 Problems

  7. Distance between line and point? Find intersection between line and circle? Find intersection between two circles? Prove that the medians of a triangle are concurrent? 3 Problems

  8. Distance between line and point? Find intersection between line and circle? Find intersection between two circles? Prove that the medians of a triangle are concurrent? 3 Problems

  9. Distance between line and point? Find intersection between line and circle? Find intersection between two circles? Prove that the medians of a triangle are concurrent? 3 Problems

  10. • Defjne sum of vectors v 1 v 2 and multiplication by scalars v 1 v 2 • In R 2 , V is 0 , line through origin, or all of R 2 v 1 v 2 V 2 0 • That spans V v 4 1 0 2 v 1 v 1 2 v 2 1 is l.i. 2 v 2 1 v 1 Set of V of vectors closed by linear combinations • Linear independent set of vectors for V Basis o to each point p p Given origin o , associate vector v V 2 v 2 1 v 1 V Vector Spaces

  11. • In R 2 , V is 0 , line through origin, or all of R 2 v 1 v 2 4 1 2 v 2 1 v 1 v 2 1 V v • That spans V 0 2 2 v 2 0 Set of V of vectors closed by linear combinations 1 v 1 is l.i. • Linear independent set of vectors for V Basis o to each point p p Given origin o , associate vector v Vector Spaces • Defjne sum of vectors v 1 , v 2 and multiplication by scalars α v 1 , v 2 ∈ V ⇒ α 1 v 1 + α 2 v 2 ∈ V

  12. v 1 v 2 4 0 2 v 2 1 v 1 v 2 1 V v • That spans V 0 2 1 2 v 2 Set of V of vectors closed by linear combinations 1 v 1 is l.i. • Linear independent set of vectors for V Basis o to each point p p Given origin o , associate vector v Vector Spaces • Defjne sum of vectors v 1 , v 2 and multiplication by scalars α v 1 , v 2 ∈ V ⇒ α 1 v 1 + α 2 v 2 ∈ V • In R 2 , V is { 0 } , line through origin, or all of R 2

  13. v 1 v 2 4 1 2 v 2 1 v 1 v 2 1 V v • That spans V 0 2 0 Set of V of vectors closed by linear combinations 2 v 2 1 v 1 is l.i. • Linear independent set of vectors for V Basis Vector Spaces • Defjne sum of vectors v 1 , v 2 and multiplication by scalars α v 1 , v 2 ∈ V ⇒ α 1 v 1 + α 2 v 2 ∈ V • In R 2 , V is { 0 } , line through origin, or all of R 2 Given origin o , associate vector v = p − o to each point p

  14. 4 2 2 v 2 1 v 1 v 2 1 V v • That spans V 0 1 Set of V of vectors closed by linear combinations 0 2 v 2 1 v 1 is l.i. • Linear independent set of vectors Vector Spaces • Defjne sum of vectors v 1 , v 2 and multiplication by scalars α v 1 , v 2 ∈ V ⇒ α 1 v 1 + α 2 v 2 ∈ V • In R 2 , V is { 0 } , line through origin, or all of R 2 Given origin o , associate vector v = p − o to each point p Basis B = { v 1 , v 2 } for V

  15. 4 • That spans V 2 v 2 1 v 1 v 2 1 • Linear independent set of vectors V v Set of V of vectors closed by linear combinations Vector Spaces • Defjne sum of vectors v 1 , v 2 and multiplication by scalars α v 1 , v 2 ∈ V ⇒ α 1 v 1 + α 2 v 2 ∈ V • In R 2 , V is { 0 } , line through origin, or all of R 2 Given origin o , associate vector v = p − o to each point p Basis B = { v 1 , v 2 } for V B is l.i. ⇔ α 1 v 1 + α 2 v 2 = 0 ⇒ α 1 = α 2 = 0

  16. Set of V of vectors closed by linear combinations • Linear independent set of vectors • That spans V 4 Vector Spaces • Defjne sum of vectors v 1 , v 2 and multiplication by scalars α v 1 , v 2 ∈ V ⇒ α 1 v 1 + α 2 v 2 ∈ V • In R 2 , V is { 0 } , line through origin, or all of R 2 Given origin o , associate vector v = p − o to each point p Basis B = { v 1 , v 2 } for V B is l.i. ⇔ α 1 v 1 + α 2 v 2 = 0 ⇒ α 1 = α 2 = 0 v ∈ V ⇔ ∃ α 1 , α 2 | v = α 1 v 1 + α 2 v 2

  17. 5 2 v a 11 a 12 a 21 a 22 1 a 11 T v 1 a 21 2 a 21 1 a 22 2 T a 22 Coordinates of a vector in a given basis 1 T v 1 Linear transformations preserve linear combinations T a 21 2 v 2 1 v 1 2 T v 2 Matrix of a linear transformation T a 11 a 12 Linear transformations � � α 1 [ v ] B = ⇔ v = α 1 v 1 + α 2 v 2 α 2

  18. 5 v 2 a 22 1 a 21 2 a 21 1 a 11 2 1 a 22 a 21 a 12 a 11 T Coordinates of a vector in a given basis Linear transformations preserve linear combinations a 22 a 21 a 12 a 11 T Matrix of a linear transformation T v Linear transformations � � α 1 [ v ] B = ⇔ v = α 1 v 1 + α 2 v 2 α 2 T ( α 1 v 1 + α 2 v 2 ) = α 1 T ( v 1 ) + α 2 T ( v 2 )

  19. 5 a 11 a 11 a 12 a 21 a 22 1 2 1 T a 21 2 a 21 1 a 22 2 v T v Coordinates of a vector in a given basis Matrix of a linear transformation a 22 a 21 a 12 a 11 Linear transformations preserve linear combinations Linear transformations � � α 1 [ v ] B = ⇔ v = α 1 v 1 + α 2 v 2 α 2 T ( α 1 v 1 + α 2 v 2 ) = α 1 T ( v 1 ) + α 2 T ( v 2 ) � � [ T ] B =

  20. 5 a 11 a 22 a 21 a 12 a 11 Coordinates of a vector in a given basis a 22 Linear transformations preserve linear combinations a 21 Matrix of a linear transformation a 12 Linear transformations � � α 1 [ v ] B = ⇔ v = α 1 v 1 + α 2 v 2 α 2 T ( α 1 v 1 + α 2 v 2 ) = α 1 T ( v 1 ) + α 2 T ( v 2 ) � � [ T ] B = � � � � � � α 1 a 11 α 1 + a 21 α 2 [ T ( v )] B = [ T ] B [ v ] B = = α 2 a 21 α 1 + a 22 α 2

  21. Interesting transformations • Identity, Rotation, Scale, Refmection, Shearing • Scale along arbitrary direction • No translation. Why? [Klein] A Geometry is the set of properties preserved by a group of transformations General linear group • Composition, inverse • Preserves collinearity, parallelism, concurrency, tangency, ratios of distances along lines 6 Linear transformations

  22. Interesting transformations • Identity, Rotation, Scale, Refmection, Shearing • Scale along arbitrary direction • No translation. Why? [Klein] A Geometry is the set of properties preserved by a group of transformations General linear group • Composition, inverse • Preserves collinearity, parallelism, concurrency, tangency, ratios of distances along lines 6 Linear transformations

  23. Interesting transformations • Identity, Rotation, Scale, Refmection, Shearing • Scale along arbitrary direction • No translation. Why? [Klein] A Geometry is the set of properties preserved by a group of transformations General linear group • Composition, inverse • Preserves collinearity, parallelism, concurrency, tangency, ratios of distances along lines 6 Linear transformations

  24. Interesting transformations • Identity, Rotation, Scale, Refmection, Shearing • Scale along arbitrary direction • No translation. Why? [Klein] A Geometry is the set of properties preserved by a group of transformations General linear group • Composition, inverse • Preserves collinearity, parallelism, concurrency, tangency, ratios of distances along lines 6 Linear transformations

  25. Interesting transformations • Identity, Rotation, Scale, Refmection, Shearing • Scale along arbitrary direction • No translation. Why? [Klein] A Geometry is the set of properties preserved by a group of transformations General linear group • Composition, inverse • Preserves collinearity, parallelism, concurrency, tangency, ratios of distances along lines 6 Linear transformations

  26. Interesting transformations • Identity, Rotation, Scale, Refmection, Shearing • Scale along arbitrary direction • No translation. Why? [Klein] A Geometry is the set of properties preserved by a group of transformations General linear group • Composition, inverse • Preserves collinearity, parallelism, concurrency, tangency, ratios of distances along lines 6 Linear transformations

  27. v 2 v 2 7 v u u v v u v y u y v u v x u x with the x-axis and Let u and v make angles u u Dot product, scalar product, standard inner product u 2 u v uov Euclydean norm, or vector length u x 4 u 2 y u u Conversely u v 1 Norm and inner product u T v = u · v = � u , v � = u x v x + u y v y

  28. v 2 v 2 u v x u Let u and v make angles and with the x-axis u x 7 u u y u v y v u v u v v 4 Dot product, scalar product, standard inner product 1 u v uov Euclydean norm, or vector length u 2 Conversely u v Norm and inner product u T v = u · v = � u , v � = u x v x + u y v y � � � u � = x + u 2 y = � u , u �

Recommend


More recommend