2D TRANSFORMATIONS (Contd.)

Total Page:16

File Type:pdf, Size:1020Kb

2D TRANSFORMATIONS (Contd.) AML710 CAD LECTURE 5 2D TRANSFORMATIONS (Contd.) Sequence of operations, Matrix multiplication, concatenation, combination of operations Types of Transformation Affine Map: A map φ that maps E3 into itself is called an affine Map if it leaves barycentric conditions invariant. If 3 x = ∑ β j a j, x,a j ∈ E Then, 3 φx = ∑ β jφa j φx,φa j ∈ E Most of the transformations that are used to position or scale an object in CAD are affine maps. The name was given by L. Euler and studied systematically by A. Mobius Euclidian Maps: Rigid body motions like rotation and translation where lengths and angles are unchanged are called Euclidian maps. This is a special case of affine maps 1 Transformation Groups and Symmetries Affine transformations are classified (Felix Klein) as follows Similarity Groups: Rigid motion and scaling Eg: Congruent, similar Symmetry Groups:Rotation, Reflection, Translation 1. No translation and no reflection – Circle group Eg: a gear wheel 2. No translation and at least one reflection – Dihedral group 3. Translation along one direction 4. Translation along more than one direction Homogeneous coordinates of vertices ¾ A point in homogeneous coordinates (x, y, h), h ≠ 0, corresponds to the 2-D vertex (x/h, y/h) in Cartesian coordinates. ¾ Conceive that the Cartesian coordinates axes lies on the plane of h = 1. The intersection of the plane and the line connecting the origin and (x, y, h) gives the corresponding Cartesianw coordinates. (x, y, h) y (x/h, y/h, 1) y x h = 1 x h = 0 2 ¾ For example, both the points (6, 9, 3) and (4, 6, 2) in the homogeneous coordinates corresponds to (2, 3) in the Cartesian coordinates. Conversely, the point (2, 1) of the Cartesian corresponds to (2, 1, 1), (4, 2, 2) or (6, 3, 3) of the homogeneous system h 6, 3, 3) (4, 2, 2) y y (2, 1, 1) x h = 1 x h = 0 Rotation Consider the following figure where a position vector p(x,y) which makes an angle φ to x-axis after transformation to p’(x’,y’) makes an angle φ+θ degrees. P’(x’,y’) P(x,y) P= [x y] = [rcosφ rsinφ] θ P’= [x’ y’] = [rcos(φ+θ ) rsin(φ+θ )] φ = [r(cosφcosθ -sinφsinθ) r(cosφsinθ+ sinφcosθ) ] Using the definition of x=rcosφ and y=rsinφ, we can write P’= [x’ y’] = [x cosθ –y sinθ x sinθ +y cosθ ] or the transformation matrix is ⎡ cosθ sinθ ⎤ [][][X T = x y ]⎢ ⎥ ⎣− sinθ cosθ ⎦ 3 Some Common Cases of Rotation Rotation of 90° counter clockwise about the origin ⎡ cosθ sinθ ⎤ ⎡ 0 1⎤ []T = ⎢ ⎥ = ⎢ ⎥ ⎣− sinθ cosθ ⎦ ⎣−1 0⎦ Rotation of 180° counter clockwise about the origin ⎡ cosθ sinθ ⎤ ⎡−1 0 ⎤ []T = ⎢ ⎥ = ⎢ ⎥ ⎣− sinθ cosθ ⎦ ⎣ 0 −1⎦ Rotation of 270° counter clockwise about the origin ⎡ cosθ sinθ ⎤ ⎡0 −1⎤ []T = ⎢ ⎥ = ⎢ ⎥ ⎣− sinθ cosθ ⎦ ⎣1 0 ⎦ In all the above cases det[T]=1 Reflection- Special case of Rotation Reflection is a special case of rotation of 180° about a line in xy plane passing through the origin. Eg about y=0 (x-axis) ⎡1 0 ⎤ []T = ⎢ ⎥ ⎣0 −1⎦ About x=0 (y-axis) ⎡−1 0⎤ []T = ⎢ ⎥ ⎣ 0 1⎦ About the lines x=y and x-y respectively are: ⎡0 1⎤ ⎡ 0 −1⎤ []T = ⎢ ⎥ []T = ⎢ ⎥ ⎣1 0⎦ ⎣−1 0 ⎦ 4 Reflection- Properties If two pure reflections about a line passing through the origin are applied successively the result is a pure rotation. The determinant of a pure reflection matrix is -1 ⎡−1 0⎤ []T = ⎢ ⎥ ⎣ 0 1⎦ Properties of transformation Matrices Det[T]=? In case of a) rotation, b) reflection. What is the geometrical interpretation of inverse of [T]? Show that TT-1 = [I] ⎡ cosθ sinθ ⎤ []T = ⎢ ⎥ ⎣− sinθ cosθ ⎦ −1 ⎡ cos(−θ ) sin(−θ )⎤ ⎡cosθ − sinθ ⎤ T []T = ⎢ ⎥ = ⎢ ⎥ = T ⎣− sin(−θ ) cos(−θ)⎦ ⎣sinθ cosθ ⎦ Thus for a pure rotation (det[T]=1) the inverse of T is its transpose 5 Example Show that the following transformation matrix gives a pure rotation ⎡1− t 2 2t ⎤ ⎢ 2 2 ⎥ 1+ t 1+ t [T ] = ⎢ 2 ⎥ ⎢ − 2t 1− t ⎥ ⎣⎢1+ t 2 1+ t 2 ⎦⎥ ⎛1− t 2 ⎞⎛1− t 2 ⎞ ⎛ − 2t ⎞⎛ 2t ⎞ det[T] = ⎜ ⎟⎜ ⎟ − =1 ⎜ 2 ⎟⎜ 2 ⎟ ⎜ 2 ⎟⎜ 2 ⎟ ⎝1+ t ⎠⎝1+ t ⎠ ⎝1+ t ⎠⎝1+ t ⎠ Example A A unit square is transformed by a 2×2 transformation matrix. The resulting position vectors are: ⎡0 0⎤ ⎢2 3⎥ [x′] = ⎢ ⎥ ⎢8 4⎥ ⎢ ⎥ ⎣6 1⎦ Determine the transformation matrix used. ⎡0 0⎤ ⎡ 0 0 ⎤ ⎡0 0⎤ Ans: ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢1 0⎥⎡a b⎤ ⎢ a b ⎥ ⎢2 3⎥ ⎡2 3⎤ [x′] = [X ][T ] = ⎢ ⎥ = = ;∴[T ] = ⎢ ⎥ ⎢1 1⎥⎣c d⎦ ⎢a + c b + d⎥ ⎢8 4⎥ ⎣6 1⎦ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎣0 1⎦ ⎣ c d ⎦ ⎣6 1⎦ 6 Example Show that the shear transformation in x and y directions together is not the same as shear along x followed by shear along y? Ans: ⎡1 b⎤⎡1 0⎤ ⎡1+ bc b⎤ ⎡1 b⎤ ⎢ ⎥⎢ ⎥ = ⎢ ⎥ ≠ ⎢ ⎥ ⎣0 1⎦⎣c 1⎦ ⎣ c 1⎦ ⎣c 1⎦ ⎡1 0⎤⎡1 b⎤ ⎡1 b ⎤ ⎡1 b⎤ ⎢ ⎥⎢ ⎥ = ⎢ ⎥ ≠ ⎢ ⎥ ⎣c 1⎦⎣0 1⎦ ⎣c 1+ bc⎦ ⎣c 1⎦ Example Problem • Consider a triangle whose vertices are (2 2), (4 2) and (4 4). Find the concatenated transformation matrix and the transformed vertices for rotatation of 90 about the origin followed by reflection through the line y = -x. Comment on the sequence of transformations. ⎡2 2⎤ ⎡2 2⎤ ⎡− 2 2⎤ ⎡ 0 1⎤ ⎡ 0 −1⎤ ⎡−1 0⎤ [X}[T }[T } = [X}[T} = ⎢4 2⎥ = ⎢4 2⎥ = ⎢− 4 2⎥ 1 2 ⎢ ⎥⎢ ⎥ ⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥ ⎣−1 0⎦ ⎣−1 0 ⎦ ⎣ 0 1⎦ ⎣⎢4 4⎦⎥ ⎣⎢4 4⎦⎥ ⎣⎢− 4 4⎦⎥ For seeing the effect of changing the sequence of operations let us reverse the order, i.e, first reflection and then rotation. ⎡2 2⎤ ⎡2 2⎤ ⎡2 − 2⎤ ⎡ 0 −1⎤⎡ 0 1⎤ ⎡1 0 ⎤ [X}[T }[T } = [X}[T} = ⎢4 2⎥ = ⎢4 2⎥ = ⎢4 − 2⎥ 2 1 ⎢ ⎥⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥ ⎣−1 0 ⎦⎣−1 0⎦ ⎣0 −1⎦ ⎣⎢4 4⎦⎥ ⎣⎢4 4⎦⎥ ⎣⎢4 − 4⎦⎥ 7 Example Problem: Solution ¾ Conduct a combination of transformations in sequence (1,3) ¾ Translate the right-angle vertex to the origin (Tx = -1, Ty = -1) (5,1) (1,1) ⎡ x'⎤ ⎡1 0 Tx ⎤⎡ x⎤ ⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ y'⎥ = ⎢0 1 Ty ⎥⎢ y⎥. ⎣⎢w'⎦⎥ ⎣⎢0 0 1 ⎦⎥⎣⎢w⎦⎥ (0,2) o π (4,0) ¾ Rotate 45 ( /4 radian) (0,0) π π sin /4 = cos /4 = 0.7071 ⎡ x"⎤ ⎡cosθ − sinθ 0⎤⎡ x'⎤ ⎢ ⎥ ⎢ ⎥⎢ ⎥ (2.8,2.8) ⎢ y"⎥ = ⎢sinθ cosθ 0⎥⎢ y'⎥ (-1.4,1.4) ⎣⎢w"⎦⎥ ⎣⎢ 0 0 1⎦⎥⎣⎢w'⎦⎥ 8 ⎡ x"⎤ ⎡cosθ − sinθ 0⎤⎡ x'⎤ ⎡cosθ − sinθ 0⎤⎡1 0 Tx ⎤⎡ x⎤ ⎢ y"⎥ = ⎢sinθ cosθ 0⎥⎢ y'⎥ = ⎢sinθ cosθ 0⎥⎢0 1 T ⎥⎢ y⎥ ⎢ ⎥ ⎢ ⎥⎢ ⎥ ⎢ ⎥⎢ y ⎥⎢ ⎥ ⎣⎢w"⎦⎥ ⎣⎢ 0 0 1⎦⎥⎣⎢w'⎦⎥ ⎣⎢ 0 0 1⎦⎥⎣⎢0 0 1 ⎦⎥⎣⎢w⎦⎥ ⎡cosθ − sinθ Tx cosθ −Ty sinθ ⎤⎡ x⎤ = ⎢sinθ cosθ T sinθ +T cosθ ⎥⎢ y⎥ ⎢ x y ⎥⎢ ⎥ ⎣⎢ 0 0 1 ⎦⎥⎣⎢w⎦⎥ ¾ The computation of [ ] from [ ] [ ] is called matrix multiplication. The general form is: ⎡a b⎤⎡e f ⎤ ⎡ae + bg af + bh⎤ ⎢ ⎥⎢ ⎥ = ⎢ ⎥ ⎣c d⎦⎣g h⎦ ⎣ce + dg cf + dh⎦ ¾ A sequence of transformations can be lumped in a single matrix via matrix multiplications ¾ Scaling relative to a fixed point (m, n) 1. Translate the point(-m, -n) to the origin 2. Scale the object by Sx, Sy scale factors 3. Translate the point back (m, n) −1 []T = [Tt ] [S][Tt ] ⎡1 0 m⎤⎡Sx 0 0⎤⎡1 0 − m⎤ ⎢ ⎥⎢ ⎥⎢ ⎥ Column Vectors []T = ⎢0 1 n ⎥⎢ 0 Sy 0⎥⎢0 1 − n ⎥ ⎣⎢0 0 1 ⎦⎥⎣⎢ 0 0 1⎦⎥⎣⎢0 0 1 ⎦⎥ 9 ¾ Rotation about an arbitrary point (m, n) −1 []T = [Tt ][R][Tt ] ⎡ 1 0 0⎤⎡ cosθ sinθ 0⎤⎡1 0 0⎤ ⎢ ⎥⎢ ⎥⎢ ⎥ Row Vectors []T = ⎢ 0 1 0⎥⎢− sinθ cosθ 0⎥⎢ 0 1 0⎥ ⎣⎢− m − n 1⎦⎥⎣⎢ 0 0 1⎦⎥⎣⎢m n 1⎦⎥ P =[x y h] Rotation about an arbitrary point 1. Translate the point(-m, -n) to the origin P(m, n) 2. Rotate the object about the origin by θo 3. Translate back (m,n) −1 []T = []Tt [R][Tt ] ⎡ 1 0 0⎤⎡ cosθ sinθ 0⎤⎡1 0 0⎤ ⎢ ⎥⎢ ⎥⎢ ⎥ []T = ⎢ 0 1 0⎥⎢− sinθ cosθ 0⎥⎢ 0 1 0⎥ ⎣⎢− m − n 1⎦⎥⎣⎢ 0 0 1⎦⎥⎣⎢m n 1⎦⎥ Ex: Center of an object (4,3) , rotate it about the center by 90o CC ⎡ 0 1 0⎤ ⎡0 −1 7 ⎤⎡x⎤ ⎢ ⎥ ⎢ ⎥⎢ ⎥ []x y 1 ⎢−1 0 0⎥ OR ⎢1 0 −1⎥⎢y⎥ ⎣⎢ 7 −1 1⎦⎥ ⎣⎢0 0 1 ⎦⎥⎣⎢1 ⎦⎥ 10 y =mx+b Reflection O(3) Reflection is a special case of rotation SO(3) when angel of rotation is 180° about an axis in the plane b θ θ = tan −1(m) sin(180) = 0,cos(180) = −1 ⎡1 0 0⎤ ⎢ ⎥ []T = ⎢0 −1 0⎥ ⎣⎢0 0 1⎦⎥ y =mx+b Reflection about an arbitrary line 1. Translate (0, -b) so that the line passes through the origin 2. Rotate the line about the x axis by -θo b 3. Reflect object about the x axis θ 4. Rotate back the line by θo 5. Translate back (0,b) −1 −1 −1 θ = tan (m) []T = [][][]Tt Tr R [Tr ] [Tt ] ⎡1 0 0 ⎤⎡ 2/ 5 1/ 5 0⎤⎡1 0 0⎤⎡2/ 5 −1/ 5 0⎤⎡1 0 0⎤ Alternate []T = ⎢0 1 −2⎥⎢−1/ 5 2/ 5 0⎥⎢0 −1 0⎥⎢1/ 5 2/ 5 0⎥⎢0 1 2⎥ Method? ⎣0 0 1 ⎦⎣ 0 0 1⎦⎣0 0 1⎦⎣ 0 0 1⎦⎣0 0 1⎦ 1 Ex: Reflect triangle (2,4),(4,6),(2,6) about line y = 2 (x + 4) ⎡3/5 4/5 −8/5⎤⎡2 4 2⎤ ⎡14/5 28/5 22/5⎤ ⎢4/5 −3/5 16/5⎥⎢4 6 6⎥ = ⎢12/5 14/5 6/5 ⎥ ⎣ 0 0 1 ⎦⎣1 1 1⎦ ⎣ 1 1 1 ⎦ 11 Mid-point Transformation Consider a straight line between A(x ,y ) and B(x ,y ).
Recommended publications
  • Enhancing Self-Reflection and Mathematics Achievement of At-Risk Urban Technical College Students
    Psychological Test and Assessment Modeling, Volume 53, 2011 (1), 108-127 Enhancing self-reflection and mathematics achievement of at-risk urban technical college students Barry J. Zimmerman1, Adam Moylan2, John Hudesman3, Niesha White3, & Bert Flugman3 Abstract A classroom-based intervention study sought to help struggling learners respond to their academic grades in math as sources of self-regulated learning (SRL) rather than as indices of personal limita- tion. Technical college students (N = 496) in developmental (remedial) math or introductory col- lege-level math courses were randomly assigned to receive SRL instruction or conventional in- struction (control) in their respective courses. SRL instruction was hypothesized to improve stu- dents’ math achievement by showing them how to self-reflect (i.e., self-assess and adapt to aca- demic quiz outcomes) more effectively. The results indicated that students receiving self-reflection training outperformed students in the control group on instructor-developed examinations and were better calibrated in their task-specific self-efficacy beliefs before solving problems and in their self- evaluative judgments after solving problems. Self-reflection training also increased students’ pass- rate on a national gateway examination in mathematics by 25% in comparison to that of control students. Key words: self-regulation, self-reflection, math instruction 1 Correspondence concerning this article should be addressed to: Barry Zimmerman, PhD, Graduate Center of the City University of New York and Center for Advanced Study in Education, 365 Fifth Ave- nue, New York, NY 10016, USA; email: [email protected] 2 Now affiliated with the University of California, San Francisco, School of Medicine 3 Graduate Center of the City University of New York and Center for Advanced Study in Education Enhancing self-reflection and math achievement 109 Across America, faculty and policy makers at two-year and technical colleges have been deeply troubled by the low academic achievement and high attrition rate of at-risk stu- dents.
    [Show full text]
  • Reflection Invariant and Symmetry Detection
    1 Reflection Invariant and Symmetry Detection Erbo Li and Hua Li Abstract—Symmetry detection and discrimination are of fundamental meaning in science, technology, and engineering. This paper introduces reflection invariants and defines the directional moments(DMs) to detect symmetry for shape analysis and object recognition. And it demonstrates that detection of reflection symmetry can be done in a simple way by solving a trigonometric system derived from the DMs, and discrimination of reflection symmetry can be achieved by application of the reflection invariants in 2D and 3D. Rotation symmetry can also be determined based on that. Also, if none of reflection invariants is equal to zero, then there is no symmetry. And the experiments in 2D and 3D show that all the reflection lines or planes can be deterministically found using DMs up to order six. This result can be used to simplify the efforts of symmetry detection in research areas,such as protein structure, model retrieval, reverse engineering, and machine vision etc. Index Terms—symmetry detection, shape analysis, object recognition, directional moment, moment invariant, isometry, congruent, reflection, chirality, rotation F 1 INTRODUCTION Kazhdan et al. [1] developed a continuous measure and dis- The essence of geometric symmetry is self-evident, which cussed the properties of the reflective symmetry descriptor, can be found everywhere in nature and social lives, as which was expanded to 3D by [2] and was augmented in shown in Figure 1. It is true that we are living in a spatial distribution of the objects asymmetry by [3] . For symmetric world. Pursuing the explanation of symmetry symmetry discrimination [4] defined a symmetry distance will provide better understanding to the surrounding world of shapes.
    [Show full text]
  • 2D and 3D Transformations, Homogeneous Coordinates Lecture 03
    2D and 3D Transformations, Homogeneous Coordinates Lecture 03 Patrick Karlsson [email protected] Centre for Image Analysis Uppsala University Computer Graphics November 6 2006 Patrick Karlsson (Uppsala University) Transformations and Homogeneous Coords. Computer Graphics 1 / 23 Reading Instructions Chapters 4.1–4.9. Edward Angel. “Interactive Computer Graphics: A Top-down Approach with OpenGL”, Fourth Edition, Addison-Wesley, 2004. Patrick Karlsson (Uppsala University) Transformations and Homogeneous Coords. Computer Graphics 2 / 23 Todays lecture ... in the pipeline Patrick Karlsson (Uppsala University) Transformations and Homogeneous Coords. Computer Graphics 3 / 23 Scalars, points, and vectors Scalars α, β Real (or complex) numbers. Points P, Q Locations in space (but no size or shape). Vectors u, v Directions in space (magnitude but no position). Patrick Karlsson (Uppsala University) Transformations and Homogeneous Coords. Computer Graphics 4 / 23 Mathematical spaces Scalar field A set of scalars obeying certain properties. New scalars can be formed through addition and multiplication. (Linear) Vector space Made up of scalars and vectors. New vectors can be created through scalar-vector multiplication, and vector-vector addition. Affine space An extended vector space that include points. This gives us additional operators, such as vector-point addition, and point-point subtraction. Patrick Karlsson (Uppsala University) Transformations and Homogeneous Coords. Computer Graphics 5 / 23 Data types Polygon based objects Objects are described using polygons. A polygon is defined by its vertices (i.e., points). Transformations manipulate the vertices, thus manipulates the objects. Some examples in 2D Scalar α 1 float. Point P(x, y) 2 floats. Vector v(x, y) 2 floats. Matrix M 4 floats.
    [Show full text]
  • Isometries and the Plane
    Chapter 1 Isometries of the Plane \For geometry, you know, is the gate of science, and the gate is so low and small that one can only enter it as a little child. (W. K. Clifford) The focus of this first chapter is the 2-dimensional real plane R2, in which a point P can be described by its coordinates: 2 P 2 R ;P = (x; y); x 2 R; y 2 R: Alternatively, we can describe P as a complex number by writing P = (x; y) = x + iy 2 C: 2 The plane R comes with a usual distance. If P1 = (x1; y1);P2 = (x2; y2) 2 R2 are two points in the plane, then p 2 2 d(P1;P2) = (x2 − x1) + (y2 − y1) : Note that this is consistent withp the complex notation. For P = x + iy 2 C, p 2 2 recall that jP j = x + y = P P , thus for two complex points P1 = x1 + iy1;P2 = x2 + iy2 2 C, we have q d(P1;P2) = jP2 − P1j = (P2 − P1)(P2 − P1) p 2 2 = j(x2 − x1) + i(y2 − y1)j = (x2 − x1) + (y2 − y1) ; where ( ) denotes the complex conjugation, i.e. x + iy = x − iy. We are now interested in planar transformations (that is, maps from R2 to R2) that preserve distances. 1 2 CHAPTER 1. ISOMETRIES OF THE PLANE Points in the Plane • A point P in the plane is a pair of real numbers P=(x,y). d(0,P)2 = x2+y2. • A point P=(x,y) in the plane can be seen as a complex number x+iy.
    [Show full text]
  • Lesson 4: Definition of Reflection and Basic Properties
    NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 4 8•2 Lesson 4: Definition of Reflection and Basic Properties Student Outcomes . Students know the definition of reflection and perform reflections across a line using a transparency. Students show that reflections share some of the same fundamental properties with translations (e.g., lines map to lines, angle- and distance-preserving motion). Students know that reflections map parallel lines to parallel lines. Students know that for the reflection across a line 퐿 and for every point 푃 not on 퐿, 퐿 is the bisector of the segment joining 푃 to its reflected image 푃′. Classwork Example 1 (5 minutes) The reflection across a line 퐿 is defined by using the following example. MP.6 . Let 퐿 be a vertical line, and let 푃 and 퐴 be two points not on 퐿, as shown below. Also, let 푄 be a point on 퐿. (The black rectangle indicates the border of the paper.) . The following is a description of how the reflection moves the points 푃, 푄, and 퐴 by making use of the transparency. Trace the line 퐿 and three points onto the transparency exactly, using red. (Be sure to use a transparency that is the same size as the paper.) . Keeping the paper fixed, flip the transparency across the vertical line (interchanging left and right) while keeping the vertical line and point 푄 on top of their black images. The position of the red figures on the transparency now represents the Scaffolding: reflection of the original figure. 푅푒푓푙푒푐푡푖표푛(푃) is the point represented by the There are manipulatives, such red dot to the left of 퐿, 푅푒푓푙푒푐푡푖표푛(퐴) is the red dot to the right of 퐿, and point as MIRA and Georeflector, 푅푒푓푙푒푐푡푖표푛(푄) is point 푄 itself.
    [Show full text]
  • 2-D Drawing Geometry Homogeneous Coordinates
    2-D Drawing Geometry Homogeneous Coordinates The rotation of a point, straight line or an entire image on the screen, about a point other than origin, is achieved by first moving the image until the point of rotation occupies the origin, then performing rotation, then finally moving the image to its original position. The moving of an image from one place to another in a straight line is called a translation. A translation may be done by adding or subtracting to each point, the amount, by which picture is required to be shifted. Translation of point by the change of coordinate cannot be combined with other transformation by using simple matrix application. Such a combination is essential if we wish to rotate an image about a point other than origin by translation, rotation again translation. To combine these three transformations into a single transformation, homogeneous coordinates are used. In homogeneous coordinate system, two-dimensional coordinate positions (x, y) are represented by triple- coordinates. Homogeneous coordinates are generally used in design and construction applications. Here we perform translations, rotations, scaling to fit the picture into proper position 2D Transformation in Computer Graphics- In Computer graphics, Transformation is a process of modifying and re- positioning the existing graphics. • 2D Transformations take place in a two dimensional plane. • Transformations are helpful in changing the position, size, orientation, shape etc of the object. Transformation Techniques- In computer graphics, various transformation techniques are- 1. Translation 2. Rotation 3. Scaling 4. Reflection 2D Translation in Computer Graphics- In Computer graphics, 2D Translation is a process of moving an object from one position to another in a two dimensional plane.
    [Show full text]
  • In This Handout, We Discuss Orthogonal Maps and Their Significance from A
    In this handout, we discuss orthogonal maps and their significance from a geometric standpoint. Preliminary results on the transpose The definition of an orthogonal matrix involves transpose, so we prove some facts about it first. Proposition 1. (a) If A is an ` × m matrix and B is an m × n matrix, then (AB)> = B>A>: (b) If A is an invertible n × n matrix, then A> is invertible and (A>)−1 = (A−1)>: Proof. (a) We compute the (i; j)-entries of both sides for 1 ≤ i ≤ n and 1 ≤ j ≤ `: m m m > X X > > X > > > > [(AB) ]ij = [AB]ji = AjkBki = [A ]kj[B ]ik = [B ]ik[A ]kj = [B A ]ij: k=1 k=1 k=1 (b) It suffices to show that A>(A−1)> = I. By (a), A>(A−1)> = (A−1A)> = I> = I: Orthogonal matrices Definition (Orthogonal matrix). An n × n matrix A is orthogonal if A−1 = A>. We will first show that \being orthogonal" is preserved by various matrix operations. Proposition 2. (a) If A is orthogonal, then so is A−1 = A>. (b) If A and B are orthogonal n × n matrices, then so is AB. Proof. (a) We have (A−1)> = (A>)> = A = (A−1)−1, so A−1 is orthogonal. (b) We have (AB)−1 = B−1A−1 = B>A> = (AB)>, so AB is orthogonal. The collection O(n) of n × n orthogonal matrices is the orthogonal group in dimension n. The above definition is often not how we identify orthogonal matrices, as it requires us to compute an n × n inverse.
    [Show full text]
  • Projective Geometry Lecture Notes
    Projective Geometry Lecture Notes Thomas Baird March 26, 2014 Contents 1 Introduction 2 2 Vector Spaces and Projective Spaces 4 2.1 Vector spaces and their duals . 4 2.1.1 Fields . 4 2.1.2 Vector spaces and subspaces . 5 2.1.3 Matrices . 7 2.1.4 Dual vector spaces . 7 2.2 Projective spaces and homogeneous coordinates . 8 2.2.1 Visualizing projective space . 8 2.2.2 Homogeneous coordinates . 13 2.3 Linear subspaces . 13 2.3.1 Two points determine a line . 14 2.3.2 Two planar lines intersect at a point . 14 2.4 Projective transformations and the Erlangen Program . 15 2.4.1 Erlangen Program . 16 2.4.2 Projective versus linear . 17 2.4.3 Examples of projective transformations . 18 2.4.4 Direct sums . 19 2.4.5 General position . 20 2.4.6 The Cross-Ratio . 22 2.5 Classical Theorems . 23 2.5.1 Desargues' Theorem . 23 2.5.2 Pappus' Theorem . 24 2.6 Duality . 26 3 Quadrics and Conics 28 3.1 Affine algebraic sets . 28 3.2 Projective algebraic sets . 30 3.3 Bilinear and quadratic forms . 31 3.3.1 Quadratic forms . 33 3.3.2 Change of basis . 33 1 3.3.3 Digression on the Hessian . 36 3.4 Quadrics and conics . 37 3.5 Parametrization of the conic . 40 3.5.1 Rational parametrization of the circle . 42 3.6 Polars . 44 3.7 Linear subspaces of quadrics and ruled surfaces . 46 3.8 Pencils of quadrics and degeneration . 47 4 Exterior Algebras 52 4.1 Multilinear algebra .
    [Show full text]
  • Some Linear Transformations on R2 Math 130 Linear Algebra D Joyce, Fall 2013
    Some linear transformations on R2 Math 130 Linear Algebra D Joyce, Fall 2013 Let's look at some some linear transformations on the plane R2. We'll look at several kinds of operators on R2 including reflections, rotations, scalings, and others. We'll illustrate these transformations by applying them to the leaf shown in figure 1. In each of the figures the x-axis is the red line and the y-axis is the blue line. Figure 1: Basic leaf Figure 2: Reflected across x-axis 1 0 Example 1 (A reflection). Consider the 2 × 2 matrix A = . Take a generic point 0 −1 x x = (x; y) in the plane, and write it as the column vector x = . Then the matrix product y Ax is 1 0 x x Ax = = 0 −1 y −y Thus, the matrix A transforms the point (x; y) to the point T (x; y) = (x; −y). You'll recognize this right away as a reflection across the x-axis. The x-axis is special to this operator as it's the set of fixed points. In other words, it's the 1-eigenspace. The y-axis is also special as every point (0; y) is sent to its negation −(0; y). That means the y-axis is an eigenspace with eigenvalue −1, that is, it's the −1- eigenspace. There aren't any other eigenspaces. A reflection always has these two eigenspaces a 1-eigenspace and a −1-eigenspace. Every 2 × 2 matrix describes some kind of geometric transformation of the plane. But since the origin (0; 0) is always sent to itself, not every geometric transformation can be described by a matrix in this way.
    [Show full text]
  • Math 21B Orthogonal Matrices
    Math 21b Orthogonal Matrices T Transpose. The transpose of an n × m matrix A with entries aij is the m × n matrix A with entries aji. The transpose AT and A are related by swapping rows with columns. Properties. Let A, B be matrices and ~v, ~w be vectors. 1.( AB)T = BT AT 2. ~vT ~w = ~v · ~w. 3.( A~v) · ~w = ~v · (AT ~w) 4. If A is invertible, so is AT and (AT )−1 = (A−1)T . 5. ker(AT ) = (im A)? and im(AT ) = (ker A)? Orthogonal Matrices. An invertible matrix A is called orthogonal if A−1 = AT or equivalently, AT A = I. The corresponding linear transformation T (~x) = A~x is called an orthogonal transformation. Caution! Orthogonal projections are almost never orthogonal transformations! Examples. Determine which of the following types of matrices are orthogonal. For those which aren't, under what conditions would they be? cos α − sin α 1. (Rotation) A = sin α cos α Solution. Check if AAT = I: cos α − sin α cos α sin α 1 0 AAT = = sin α cos α − sin α cos α 0 1 so yes this matrix is orthogonal. This shows that any rotation is an orthogonal transforma- tion. a b 2. (Reflection Dilation) B = . b −a Solution. Check if BBT = I: a b a b a2 + b2 0 BBT = = : b −a b −a 0 a2 + b2 This will equal I only if a2 + b2 = 1, i.e., B is a reflection (no dilation). This shows that any reflection is an orthogonal transformation. 2 j j j 3 3 3.
    [Show full text]
  • Chapter 12 the Cross Ratio
    Chapter 12 The cross ratio Math 4520, Fall 2017 We have studied the collineations of a projective plane, the automorphisms of the underlying field, the linear functions of Affine geometry, etc. We have been led to these ideas by various problems at hand, but let us step back and take a look at one important point of view of the big picture. 12.1 Klein's Erlanger program In 1872, Felix Klein, one of the leading mathematicians and geometers of his day, in the city of Erlanger, took the following point of view as to what the role of geometry was in mathematics. This is from his \Recent trends in geometric research." Let there be given a manifold and in it a group of transforma- tions; it is our task to investigate those properties of a figure belonging to the manifold that are not changed by the transfor- mation of the group. So our purpose is clear. Choose the group of transformations that you are interested in, and then hunt for the \invariants" that are relevant. This search for invariants has proved very fruitful and useful since the time of Klein for many areas of mathematics, not just classical geometry. In some case the invariants have turned out to be simple polynomials or rational functions, such as the case with the cross ratio. In other cases the invariants were groups themselves, such as homology groups in the case of algebraic topology. 12.2 The projective line In Chapter 11 we saw that the collineations of a projective plane come in two \species," projectivities and field automorphisms.
    [Show full text]
  • Homogeneous Representations of Points, Lines and Planes
    Chapter 5 Homogeneous Representations of Points, Lines and Planes 5.1 Homogeneous Vectors and Matrices ................................. 195 5.2 Homogeneous Representations of Points and Lines in 2D ............... 205 n 5.3 Homogeneous Representations in IP ................................ 209 5.4 Homogeneous Representations of 3D Lines ........................... 216 5.5 On Plücker Coordinates for Points, Lines and Planes .................. 221 5.6 The Principle of Duality ........................................... 229 5.7 Conics and Quadrics .............................................. 236 5.8 Normalizations of Homogeneous Vectors ............................. 241 5.9 Canonical Elements of Coordinate Systems ........................... 242 5.10 Exercises ........................................................ 245 This chapter motivates and introduces homogeneous coordinates for representing geo- metric entities. Their name is derived from the homogeneity of the equations they induce. Homogeneous coordinates represent geometric elements in a projective space, as inhomoge- neous coordinates represent geometric entities in Euclidean space. Throughout this book, we will use Cartesian coordinates: inhomogeneous in Euclidean spaces and homogeneous in projective spaces. A short course in the plane demonstrates the usefulness of homogeneous coordinates for constructions, transformations, estimation, and variance propagation. A characteristic feature of projective geometry is the symmetry of relationships between points and lines, called
    [Show full text]