SlideShare uma empresa Scribd logo
1 de 72
Chapter 5


     Geometric Transformations
5.1 Basic Two-Dimensional
   Geometric Transformations
   Operations that are applied to the geometric
    description of an object to change its
    position, orientation, or size are called
    geometric transformations.
   Geometric transformations can be used to
    describe how objects might move around in
    a scene during an animation sequence or
    simply to view them from another angle.
   geometric transformations
       Translation
       Rotation
       Scaling
Two-Dimensional Translation
   We perform a translation on a single coordinate
    point by adding offsets to its coordinates so as to
    generate a new coordinate position.
   To translate a two-dimensional position, we add
    translation distances, tx and ty to the original
    coordinates (x,y) to obtain the new coordinate
    position (x’,y’),
                  x = x+t
                      '
                                 x

                  y = y + ty
                    '
The two-dimensional translation equations in the
  matrix form

 จาก         x = x + tx
                  '
                                           ให้
 รูป
 y
                 y' = y + ty                 x 
                                           P= 
                                                                x' 
                                                           P' =  ' 
                      P' ( x' , y' )          y               y 
                                                                 
             T                                        t x 
                      ty                   และ     T = 
P ( x, y )
                                                      t y 
             tx
                                                x '   x  t x 
                                                ' =   +  
                                       x

                                       จะได้    y   y  t y 
                                                
                                               P = P +T
                                                  '
Two-Dimensional Rotation
   We generate a rotation transformation of an
    object by specifying a rotation axis and a
    rotation angle.
   A two-dimensional rotation of an object is
    obtained by repositioning the object along a
    circular path in the xy plane.
   Parameters for the two-dimensional rotation
    are
     The rotation angle θ
     A position (x,y) – rotation point (pivot
       point)
The two-dimensional rotation


                              x ' = r cos(φ + θ ) = r cos φ cos θ − r sin φ sin θ
                              y ' = r sin(φ + θ ) = r cos φ sin θ + r sin φ cos θ
y
                                             Polar coordinate system
                                                            x = r cos φ
                 O' ( x' , y' )                              y = r sin φ
                            O ( x, y )
       θ
             φ
                                         x
    P(0,0)                                          x ' = x cos θ − y sin θ
                                                    y ' = x sin θ + y cos θ
The two-dimensional rotation


                                              x '  cos θ - sinθ   x 
                                              ' = 
y

                                             y  
                                                    sin θ cosθ   y 
                                                                    
                 O' ( x' , y' )              O' = R • O
                            O ( x, y )
       θ                                              โดยที่
             φ                                           x               x' 
                                         x             O=          O' =  ' 
    P(0,0)                                                y             y 
                                                                           

                cos θ - sinθ 
        และ R =                                         Rotation matrix
                sin θ cosθ 
Ex. 1




1.0



        0.5
Rotation of a point about an arbitrary pivot position


                                       x ' = ( x − xr ) cos θ − ( y − yr ) sin θ + xr
                                       y ' = ( x − xr ) sin θ + ( y − yr ) cos θ + yr
y
                     O' ( x' , y' )                 x '  cos θ - sinθ   x − xr   xr 
                                                    ' =                y − y  +  y 
                               O ( x, y )           y  sin θ cosθ  
                                                                                 r  r

            θ                                      O ' = R • O* + P
                φ
    P ( xr , y r )
                                            x
                                                          โดยที่
                                                         x − x' 
                                                    O* =       '
                                                         y − y 
                                                                
Two-Dimensional Scaling
   To alter the size of an
    object, we apply a
    scaling transformation.
   A simple two-               x = x ⋅ sx
                                  '
    dimensional scaling
    operation is performed
    by multiplying object
                                y = y ⋅ sy
                                  '

    positions (x,y) by
    scaling factors sx and
    sy to produce the          x '  sx 0   x 
    transformed                ' =        
    coordinates (x’,y’).       y  0 s y   y 
                               
                              P = S•P
                                 '
   Any positive values can be assigned to the
    scaling factors.
     Values less than 1 reduce the size of

      object;
     Values greater than 1 produce

      enlargements.
     Uniform scaling – scaling values have the

      same value
     Differential scaling – unequal of the

      scaling factor
Scaling relative to a chosen fixed point


                                  x ' = x ⋅ s x + x f (1 − s x )
                                  y ' = y ⋅ s y + y f (1 − s y )
 y
                   P1

                                  x '   s x 0   x  1 − s x 0   x f 
          •                       ' =            +  0 1-s   
Pf ( x f , y f )        P2        y  0 s y   y  
                                                                 y  y f 
                                                                       


          P3                     P ' = S • P + S * • Pf
                             x
5.2 Matrix Representations and
    Homogeneous Coordinates
   Many graphics applications involve
    sequences of geometric transformations.
   Hence we consider how the matrix
    representations can be reformulated so that
    such transformation sequence can be
    efficiently processed.
   Each of three basic two-dimensional
    transformations (translation, rotation and
    scaling) can be expressed in the general
    matrix form
P and P ’ = column vectors,
   coordinate position
M1 = 2 by 2 array containing        P = M1 ⋅ P + M 2
                                       '
   multiplicative factors, for
   translation M1 is the identity
   matrix
M2 = two-element column matrix
   containing translational terms, for
   rotation or scaling M2 contains
   the translational terms associated
   with the pivot point or scaling
   fixed point
P' = M1 ⋅ P + M 2

               x '  1 0  x  t x 
               ' =       y  + t                  Translation
               y  0 1    y 
               
 x '  cos θ - sinθ   x − xr   xr 
 ' =                y − y  +  y                  Rotation
 y  sin θ cosθ  
                              r  r
 x '  cos θ - sinθ   x  cos θ - sinθ   xr   xr 
 ' =                 y  − sin θ cosθ   y  +  y 
 y  sin θ cosθ    
                                           r   r 

           x '   s x 0   x  1 − s x 0   x f 
           ' =            +  0 1-s             Scaling
           y  0 s y   y  
                                          y  y f 
                                                
   To produce a sequence of transformations
    such as scaling followed by rotation then
    translation, we could calculate the
    transformed coordinates one step at a time.
   A more efficient approach is to combine the
    transformations so that the final coordinate
    positions are obtained directly from the
    initial coordinates, without calculating
    intermediate coordinate values.
Homogeneous Coordinates
   Multiplicative and translational terms for a
    two-dimensional geometric transformations
    can be combined into a single matrix if we
    expand the representations to 3 by 3
    matrices.
   Then we can use the third column of a
    transformation matrix for the translation
    terms, and all transformation equations can
    be expressed as matrix multiplications.
   But to do so, we also need to expand the
    matrix representation for a two-dimensional
    coordinate position to a three-element column
    matrix.
   A standard technique for accomplishing this
    is to expand each two-dimensional
    coordinate-position representation (x,y) to a
    three-element representation (xh,yh,h), called
    homogeneous coordinates, where the
    homogeneous parameter h is a nonzero
    value such that
                 xh            yh
               x= ,         y=
                 h             h
   A convenient choice is simply to set h=1.
   Each two-dimensional position is then
    represented with homogeneous coordinate
    (x,y,1).
   The term “homogeneous coordinates” is
    used in mathematics to refer to the effect of
    this representation on Cartesian equations.
x '   1            0 t x x 
          '                        
          y  = 0            1 t y  y    Translation
           0
          1                    0 1  1
                                   
         P ' = T (t x , t y ) ⋅ P
                                               x '  cos θ - sinθ 0   x 
                                               ' 
                                   Rotation    y  = sin θ cosθ 0  y 
                                                                       
                                              1   0          0   1  1 
                                                                    
 x '  sx 0 0   x                        P ' = R (θ ) ⋅ P
 '                    
 y  = 0 s y 0   y             Scaling
1  0 0 1 1 
                      
P ' = S (sx , s y ) ⋅ P
5.3 Inverse Transformations
                1 0 - t x     Inverse translation matrix
             −1           
            T = 0 1 - t y 
                0 0 1 
                          
   Inverse rotation matrix                  1        
                                            s     0 0
        cos θ sinθ 0                       x       
R −1 = − sin θ cosθ 0                  −1       1 
                                      S = 0       0
        0
                0    1                         sy
                                                     
                                            0    0 1
                  Inverse scaling matrix             
                                                     
5.4 Two-Dimensional Composite
    Transformations
   Using matrix representations, we
    can set up a sequence of
    transformations as a composite
    transformation matrix by
    calculating the product of the
    individual transformations.
   Thus, if we ant to apply two
    transformations to point position
    P, the transformed location would
    be calculated as
                        P = M 2 ⋅ M1 ⋅ P
                          '


                        P = M ⋅P
                          '
(1,3)         (2,3)


                                                 (3,2)

                                                         (-2,1)    (-1,1)
                           (1,1)         (2,1)


                                   (a)                                      (b)
                                                         (-2,-1)    (-1,-1)

                                                                                      (1.63,2.37)
                                                                            (0.77,1.87)


                (-1.37,0.37)                                                                (2.63,0.63)
(-2.23,-0.13)
                                                                              (1.77,0.13)
                     (c)
                                                                        (d)
                     (-0.37,-1.37)

           (-1.23,-1.87)
Composite Two-dimensional Translations

    P ' = T (t 2 x , t 2 y ) ⋅ {T (t1x , t1 y ) ⋅ P}
    P ' = {T (t 2 x , t 2 y ) ⋅ T (t1x , t1 y )} ⋅ P
           composite transformation matrix
   1 0 t 2 x   1 0 t1x    1 0 t1x + t 2 x  
                                                                  
   0 1 t 2 y  ⋅  0 1 t1 y   =  0 1 t1 y + t 2 y  
    0 0 1   0 0 1    0 0                                  1 
                                                                  
   T (t 2 x , t 2 y ) ⋅ T (t1x , t1 y ) = T (t1x + t 2 x , t1 y + t 2 y )
Composite Two-dimensional Rotations

   P ' = R (θ 2 ) ⋅ {R (θ1 ) ⋅ P}
   P ' = {R (θ 2 ) ⋅ R (θ1 )} ⋅ P
         composite transformation matrix
   R (θ 2 ) ⋅ R (θ1 ) = R (θ1 + θ 2 )
Composite Two-dimensional Scaling

      composite transformation matrix
 S 2 x 0 0   S1x 0 0   S1x ⋅ S 2 x 0                             0
                                                                  
0 S 2 y 0 ⋅ 0 S1 y 0  =  0 S1 y ⋅ S 2 y 0
0 0 1 0 0 1  0                                              0    1
                                                                  
S ( s2 x , s2 y ) ⋅ S ( s1x , s1 y ) = S ( s1x ⋅ s2 x , s1 y ⋅ s2 y )
General Two-dimensional Pivot-
    Point Rotation
   A transformation sequence for rotating
    an object about a sepcified pivot point
    using the rotation matrix R(θ).
       Translate the object so that the pivot-point
        position is moved to the coordinate origin.
       Rotate the object about the coordinate
        origin.
       Translate the object so that the pivot point
        is returned to its original position.
(xr,yr)         (xr,yr)




(a)                (b)




      (xr,yr)              (xr,yr)




(c)                (d)
1 0 xr  cos θ - sinθ 0  1 0 - xr 
0 1 y  ⋅ sin θ cosθ 0 ⋅ 0 1 - y 
             r                                        r

0 0 1   0
                              0      1  0 0 1 
                                                           
                     cos θ - sinθ xr( 1- cos θ) + yr sin θ 
                  = sin θ cosθ y ( 1- cos θ) − x sin θ 
                                           r                   r 
                      0
                                  0                   1         
                                                                 
T ( xr , yr ) ⋅ R (θ ) ⋅ T (− xr ,− yr ) = R ( xr , yr , θ )
General Two-dimensional Fixed-
    Point Scaling
   A transformation sequence to produce a two-
    dimensional scaling with respect to a selected
    fixed position (xf,yf).
       Translate the object so that the fixed point
        coincides with the coordinate origin.
       Scale the object with respect to the coordinate
        origin.
       Use the inverse of the translation in step (1) to
        return the object to its original position.
(xf,yf)         (xf,yf)




(a)                (b)




      (xf,yf)              (xf,yf)




(c)                (d)
1 0 x f   s x 0 0  1 0 - x f 
                                 
0 1 y f  ⋅  0 s y 0  ⋅ 0 1 - y f 
0 0 1   0 0 1  0 0 1 
                                 
                s x 0 x f ( 1-s x )
                                   
           = 1 s y y f ( 1-s y )
               0 0        1        
                                   
T ( x f , y f ) ⋅ S ( s x , s y ) ⋅ T (− x f ,− y f ) = S ( x f , y f , ( s x , s y ))
General Two-dimensional Scaling
    Directions
   We can scale an object in
    other directions by rotating
    the object to align the
                                   y
    desired scaling directions         s2
    with the coordinate axes
    before applying the scaling
    transformation.
   Suppose we want to apply
    scaling factors with values
    specified by parameters s1              x
    and s2 in the directions                s1
    shown in fig.
The composite matrix resulting from the product of
       - rotation so that the directions for s1 and s2
       coincide with the x and y axes
       - scaling transformation S(s1,s2)
       - opposite rotation to return points to their
       original orientations

                                   s1Cos 2θ + s2 Sin 2θ ( s2 − s1 )CosθSinθ   0
                                                                               
R (θ ) ⋅ S ( s1 , s2 ) ⋅ R (θ ) = ( s2 − s1 )CosθSinθ s1Sin 2θ + s2Cos 2θ
 -1
                                                                               0
                                              0                     0         1
                                                                               
y                            y
                                             (2,2)

                             (1/2,3/2)

(0,1)     (1,1)

                                         (3/2,1/2)

(0,0)     (1,0)          x   (0,0)               x


        s1= 1     s2=2
Matrix Concatenation Properties
   Transformation products may not be
    commutative.
   The matrix product M2M1 is not equal to M1M2.
   This means that if we want to translate and
    rotate an object, we must be careful about the
    order in which the composite matrix is
    evaluated.
   Reversing the order in which a sequence of
    transformations is performed may affect the
    transformed position of an object.
2 Rotation
1 Translation




1 Rotation      2 Translation
General Two-dimensional Composite
    Transformations and Computational
    Efficiency
                x '  rs xx rs xy trs x   x 
                '                       
                y  = rs yx rs yy trs y   y 
               1   0 0 1  1 
                                        
   rs** are the multiplicative rotation-scaling terms
    (rotation angles, scaling factors)
   trsx and trsy are the translation terms
    (translation distances, pivot-point and fixed-
    point coordinates, rotation angles, scaling
    parameters)
Example
              Scale and
              rotate about its centroid coordinates (xc,yc)
               and
              translate
T (t x , t y ) ⋅ R ( xc , yc , θ ) ⋅ S ( xc , yc , s x , s y ) =
                                                               s x cos θ - s y sin θ   xc (1 − s x cos θ ) + yc s y sin θ + t x 
                                                                                                                                
                                                               s x sin θ s y cos θ     yc (1 − s y cos θ ) − xc s x sin θ + t y 
                                                               0               0                         1                      
                                                                                                                                
Two-dimensional Rigid-body Transformation
   If a transformation matrix includes only
    translation and rotation parameters, it is a
    rigid-body transformation matrix.
                     rxx rxy trx 
                                 
                     ryx ryy try 
                     0 0 1 
                                 
   r** are the multiplicative rotation terms (rotation angles)
   trx and try are the translation terms (translation
    distances, pivot-point and fixed-point coordinates,
    rotation angles)
5.5 Other Two-Dimensional
   Transformations
Reflection
   For a two-dimensional reflection, the
    image is generated relative to an axis
    of reflection by rotating the object 180º
    about the reflection axis.
Reflection about the line y=0 (the x
    axis)


   1 0 0
   0 - 1 0 
           
   0 0 1 
           
Reflection about the line x=0 (the y
    axis)


    − 1 0 0
    0 1 0
           
    0 0 1
           
Reflection about any reflection point in
    the xy plane




                                 Reflection point



             − 1 0 0 
              0 - 1 0
                     
              0 0 1 
                     
Reflection about the reflection axis
         y=x

                 0 1 0 
                 1 0 0
                       
                 0 0 1 
                       

1.   Rotate the line y=x with respect to
     the original through a 45 angle
2.   Reflection with respect to the x axis
3.   Rotate the line y=x black to its
     original position with a
     counterclockwise rotation through
     45
Reflection about the reflection axis y=-x

                  0 - 1 0
                 - 1 0 0 
                         
                  0 0 1
                         

1.   Clockwise rotate the line y=-x with
     respect to the original through a 45
     angle
2.   Reflection with respect to the y axis
3.   Rotate the line y=-x black to its
     original position with a                y = -x
     counterclockwise rotation through
     45
Shear
   A transformation that distorts the
    shape of an object such that the
    transformed shape appears as if the
    object were composed of internal
    layers that had been caused to slide
    over each other is called a shear.
       An x-direction shear

         1 shx 0
         0 1 0        transformation matrix
                
         0 0 1
                

     y                                    y



                                                        (2,1)   (3,1)
(0,1)           (1,1)
                             shx = 2


(0,0)           (1,0)                  (0,0)    (1,0)
       We can generate x-direction shears
         relative to other reference lines
            1         shx -shx ⋅ yref 
                                      
            0          1       0             transformation matrix
            0          0       1 
                                      
     y                                             y



                                                             (1,1)        (2,1)
(0,1)                 (1,1)
                                   shx = ½
                                   yref = -1
(0,0)                 (1,0)                     (0,0)   (1/2,0)     (3/2,0)


          yref = -1                                     yref = -1
       A y-direction shears relative to the line
                  x=xref is generated with
                    1        0        0    
                                           
                     shy     1 -shy ⋅ xref           transformation matrix
                    0        0       1 
                                           
              y                                                       y
                                                                               (1,2)

                                                                (0,3/2)
        (0,1)               (1,1)                                              (1,1)
                                           shy = ½
                                                                (0,1/2)
                                           xref = -1
xref = -1 (0,0)             (1,0)                        xref = -1 (0,0)
   Shear operations can be expressed as
    sequences of basic transformations.
   The x-direction shear matrix
               1 shx 0
               0 1 0 
                      
               0 0 1
                      
    can be represented as a composite
    transformation involving a series of rotation
    and scaling metrices.
5.6 Raster Methods for Geometric
    Transformations
   Functions that manipulate rectangular pixel
    arrays are called raster operations and
    moving a block of pixel values from one
    position to another is termed a block
    transfer, a bitblt or a pixblt.
   All bit settings in the rectangular area are
    copied as a block into another part of the
    frame buffer.
   We can erase the pattern at the original
    location by assigning the background color
    to all pixels within that block.
Array rotations that are not multiples of 90º

  1    2     3                  12   11 10 
  4                3 6 9 12
       5      6
                   2 5 8 11
                                  9
                                       8 7  
  7    8      9               6    5 4
                  1 4 7 10 
                                           
  10   11    12                 3    2 1
        (a)             (b)             (c)

The original array is shown in (a),
the positions of the array elements after a 90º
counterclockwise rotation are shown in (b), and
the position of the array elements after a 180º
rotation are shown in (c).
5.7 OpenGL Raster Transformations
   A translation of a rectangular array of pixel-
    color values from one buffer area to another
    can be accomplished in OpenGL as a copy
    operation:
glCopyPixels(xmin, ymin, width, height, GL_COLOR);
   This array of pixels is to be copied to a
    rectangular area of a refresh buffer whose
    lower-left corner is at the location specified
    by the current raster position.
   We can rotate a block of pixel-color values in 90-degree
    increments by
       first saving the block in an array,

glReadPixels(xmin, ymin, width, height, GL_RGB,
   GL_UNSIGNED_BYTE, colorArray);

       then rearranging the elements of the array and
       placing it back in the refresh buffer.

glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE,
    colorArray);

   We set the scaling facters with

glPixelZoom(sx,sy);
5.8 Transformations between Two-
      Dimensional Coordinate Systems

                  y’
                  y
                                            x’



                                θ
                 yn

                           xn        x
A Cartesian x’y’ system specified with coordinate origin
(xn,yn) and orientation angle θ in a Cartesian xy reference
frame.
   To transform object descriptions from xy
    coordinates to x’y’ coordinates, we set up a
    transformation that superimposes the axes
    onto the x’y’ axes.
   This is done in two steps:
       Translate so that the origin (xn,yn) of the x’y’
        system is moved to the origin (0,0) of the xy
        system.
       Rotation the x’ axis onto the x axis.
1 0 − xn 
      1)Translation                          0 1 − y 
                        T ( − xn , − y n ) =        n

                                             0 0 1 
                                                      
 y’
y                                          y
            P                 y   ’

                         x’
                                               P
                                           y
                                                            x’
                                      y’
                θ
yn
                                                       x’
                                                   θ
       xn           x                          x             x
2)clockwise rotation
                                             cosθ sinθ 0
                              2.1) R(−θ ) = - sinθ cosθ 0 
                                                          
                                             0
                                                    0   1
             y                                             y
y   ’
                                              y   ’



                 P                                              P
             y                                             y
                                      x’
        y’

                         x’
                     θ
                 x                      x                      x                    x


             composite matrix          M xy , x ' y ' = R (−θ ) ⋅ T (− xn ,− yn )
OR
                2.2) An alternate method for
                 describing the orientation of the
                 x’y’ coordinate system is to
                 specify a vector V that indicates
                 the direction for the positive y’
                 axis.
                We can specify vector V as a
                 point in the xy reference frame
                 relative to the origin of the xy
                 system, which we can convert to
     y’
                 the unit vector,
    y
V              P                      V
                            x’
                                   v=   = (v x , v y )
                                      V

    yn             θ


          xn           x
   We obtain the unit vector u along the x’ axis by
    applying a 90º clockwise rotation to vector v

           u = (v y ,−v x ) = (u x , u y )
   The matrix to rotate the x’y’ system into
    coincidence with the xy system can be written as
                   u x u y 0 
                             
               R = v x v y 0 
                   0 0 1
                             
OR
                      In the case that we
                       coordinates of P0 and P1
                       are known,
                                    P1 - P0
                                 v=         = (v x , v y )
                                    P1 - P0

     y’
    y
V                    P
                                   x’
          P1


    yn                   θ
               P0

                xn           x
(xf,yf)                         (xf,yf)




                (a)                             (b)




      (xf,yf)                         (xf,yf)
                                                                  (xf,yf)




(c)                             (d)                             (e)
(xf,yf)



(xf,yf)

(f)

Mais conteúdo relacionado

Mais procurados

seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation9784
 
3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric TransformationsIshan Parekh
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformationsNareek
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)Amit Kapoor
 
2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)AditiPatni3
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
04transformation2d
04transformation2d04transformation2d
04transformation2dKetan Jani
 
2d-transformation
2d-transformation2d-transformation
2d-transformationPooja Dixit
 
Geometric objects and transformations
Geometric objects and transformationsGeometric objects and transformations
Geometric objects and transformationssaad siddiqui
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 dxyz120
 
Overview of 2D and 3D Transformation
Overview of 2D and 3D TransformationOverview of 2D and 3D Transformation
Overview of 2D and 3D TransformationDheeraj Sadawarte
 
2D Transformation
2D Transformation2D Transformation
2D TransformationShahDhruv21
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics Vikram Halder
 
2 d transformations
2 d transformations2 d transformations
2 d transformationsSardar Alam
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D2013901097
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer GraphicsSusmita
 
Two dimensional geometric transformation
Two dimensional geometric transformationTwo dimensional geometric transformation
Two dimensional geometric transformationjapan vasani
 

Mais procurados (19)

seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation
 
3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)
 
2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)
 
3d transformation
3d transformation3d transformation
3d transformation
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
04transformation2d
04transformation2d04transformation2d
04transformation2d
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
 
Geometric objects and transformations
Geometric objects and transformationsGeometric objects and transformations
Geometric objects and transformations
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 d
 
Overview of 2D and 3D Transformation
Overview of 2D and 3D TransformationOverview of 2D and 3D Transformation
Overview of 2D and 3D Transformation
 
2D Transformation
2D Transformation2D Transformation
2D Transformation
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Transformations
TransformationsTransformations
Transformations
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
 
Two dimensional geometric transformation
Two dimensional geometric transformationTwo dimensional geometric transformation
Two dimensional geometric transformation
 

Destaque

Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations   Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations Taher Barodawala
 
Tutorials--Transformations
Tutorials--TransformationsTutorials--Transformations
Tutorials--TransformationsMedia4math
 
Obj. 32 Compositions of Transformations
Obj. 32 Compositions of TransformationsObj. 32 Compositions of Transformations
Obj. 32 Compositions of Transformationssmiller5
 
2.5.3 Compositions of Transformations
2.5.3 Compositions of Transformations2.5.3 Compositions of Transformations
2.5.3 Compositions of Transformationssmiller5
 
CG OpenGL vectors geometric & transformations-course 5
CG OpenGL vectors geometric & transformations-course 5CG OpenGL vectors geometric & transformations-course 5
CG OpenGL vectors geometric & transformations-course 5fungfung Chen
 
Homogeneous representation
Homogeneous representationHomogeneous representation
Homogeneous representationgosaliya dheirya
 
Cohen and Sutherland Algorithm for 7-8 marks
Cohen and Sutherland Algorithm for 7-8 marksCohen and Sutherland Algorithm for 7-8 marks
Cohen and Sutherland Algorithm for 7-8 marksRehan Khan
 
Lect6 transformation2d
Lect6 transformation2dLect6 transformation2d
Lect6 transformation2dBCET
 
2d transformations
2d transformations2d transformations
2d transformationskmrvivek2
 
AP Physics - Chapter 10 Powerpoint
AP Physics - Chapter 10 PowerpointAP Physics - Chapter 10 Powerpoint
AP Physics - Chapter 10 PowerpointMrreynon
 
AP Physics - Chapter 16 Powerpoint
AP Physics - Chapter 16 PowerpointAP Physics - Chapter 16 Powerpoint
AP Physics - Chapter 16 PowerpointMrreynon
 
Software Reengineering
Software ReengineeringSoftware Reengineering
Software ReengineeringAbdul Wahid
 
AP Physics - Chapter 6 Powerpoint
AP Physics - Chapter 6 PowerpointAP Physics - Chapter 6 Powerpoint
AP Physics - Chapter 6 PowerpointMrreynon
 
Lex (lexical analyzer)
Lex (lexical analyzer)Lex (lexical analyzer)
Lex (lexical analyzer)Sami Said
 
Geometric transformation 2d chapter 5
Geometric transformation 2d   chapter 5Geometric transformation 2d   chapter 5
Geometric transformation 2d chapter 5geethawilliam
 
Physics - Chapter 6 - Momentum and Collisions
Physics - Chapter 6 - Momentum and CollisionsPhysics - Chapter 6 - Momentum and Collisions
Physics - Chapter 6 - Momentum and CollisionsJPoilek
 
Clipping Algorithm In Computer Graphics
Clipping Algorithm In Computer GraphicsClipping Algorithm In Computer Graphics
Clipping Algorithm In Computer Graphicsstudent(MCA)
 

Destaque (20)

Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations   Hearn and Baker 2 D transformations
Hearn and Baker 2 D transformations
 
Tutorials--Transformations
Tutorials--TransformationsTutorials--Transformations
Tutorials--Transformations
 
Obj. 32 Compositions of Transformations
Obj. 32 Compositions of TransformationsObj. 32 Compositions of Transformations
Obj. 32 Compositions of Transformations
 
2.5.3 Compositions of Transformations
2.5.3 Compositions of Transformations2.5.3 Compositions of Transformations
2.5.3 Compositions of Transformations
 
CG OpenGL vectors geometric & transformations-course 5
CG OpenGL vectors geometric & transformations-course 5CG OpenGL vectors geometric & transformations-course 5
CG OpenGL vectors geometric & transformations-course 5
 
Homogeneous representation
Homogeneous representationHomogeneous representation
Homogeneous representation
 
Cohen and Sutherland Algorithm for 7-8 marks
Cohen and Sutherland Algorithm for 7-8 marksCohen and Sutherland Algorithm for 7-8 marks
Cohen and Sutherland Algorithm for 7-8 marks
 
Lect6 transformation2d
Lect6 transformation2dLect6 transformation2d
Lect6 transformation2d
 
2d transformations
2d transformations2d transformations
2d transformations
 
AP Physics - Chapter 10 Powerpoint
AP Physics - Chapter 10 PowerpointAP Physics - Chapter 10 Powerpoint
AP Physics - Chapter 10 Powerpoint
 
06 clipping
06 clipping06 clipping
06 clipping
 
Lexical Analysis
Lexical AnalysisLexical Analysis
Lexical Analysis
 
AP Physics - Chapter 16 Powerpoint
AP Physics - Chapter 16 PowerpointAP Physics - Chapter 16 Powerpoint
AP Physics - Chapter 16 Powerpoint
 
Software Reengineering
Software ReengineeringSoftware Reengineering
Software Reengineering
 
Software Reengineering
Software ReengineeringSoftware Reengineering
Software Reengineering
 
AP Physics - Chapter 6 Powerpoint
AP Physics - Chapter 6 PowerpointAP Physics - Chapter 6 Powerpoint
AP Physics - Chapter 6 Powerpoint
 
Lex (lexical analyzer)
Lex (lexical analyzer)Lex (lexical analyzer)
Lex (lexical analyzer)
 
Geometric transformation 2d chapter 5
Geometric transformation 2d   chapter 5Geometric transformation 2d   chapter 5
Geometric transformation 2d chapter 5
 
Physics - Chapter 6 - Momentum and Collisions
Physics - Chapter 6 - Momentum and CollisionsPhysics - Chapter 6 - Momentum and Collisions
Physics - Chapter 6 - Momentum and Collisions
 
Clipping Algorithm In Computer Graphics
Clipping Algorithm In Computer GraphicsClipping Algorithm In Computer Graphics
Clipping Algorithm In Computer Graphics
 

Semelhante a Supot37255412160

2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)Timbal Mayank
 
Lesson20 Tangent Planes Slides+Notes
Lesson20   Tangent Planes Slides+NotesLesson20   Tangent Planes Slides+Notes
Lesson20 Tangent Planes Slides+NotesMatthew Leingang
 
Unit Circle - Trigonometry
Unit Circle - TrigonometryUnit Circle - Trigonometry
Unit Circle - TrigonometrySimon Borgert
 
Quantum modes - Ion Cotaescu
Quantum modes - Ion CotaescuQuantum modes - Ion Cotaescu
Quantum modes - Ion CotaescuSEENET-MTP
 
Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementationQuasar Chunawala
 
Emat 213 study guide
Emat 213 study guideEmat 213 study guide
Emat 213 study guideakabaka12
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Matthew Leingang
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Mel Anthony Pepito
 
Cs229 cvxopt
Cs229 cvxoptCs229 cvxopt
Cs229 cvxoptcerezaso
 
C Sanchez Reduction Saetas
C Sanchez Reduction SaetasC Sanchez Reduction Saetas
C Sanchez Reduction SaetasMiguel Morales
 
02 2d systems matrix
02 2d systems matrix02 2d systems matrix
02 2d systems matrixRumah Belajar
 
Lattices and codes
Lattices and codesLattices and codes
Lattices and codesSpringer
 

Semelhante a Supot37255412160 (20)

2d transformation
2d transformation2d transformation
2d transformation
 
Figures
FiguresFigures
Figures
 
Trig identities
Trig identitiesTrig identities
Trig identities
 
2D-transformation-1.pdf
2D-transformation-1.pdf2D-transformation-1.pdf
2D-transformation-1.pdf
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Lesson20 Tangent Planes Slides+Notes
Lesson20   Tangent Planes Slides+NotesLesson20   Tangent Planes Slides+Notes
Lesson20 Tangent Planes Slides+Notes
 
Unit Circle - Trigonometry
Unit Circle - TrigonometryUnit Circle - Trigonometry
Unit Circle - Trigonometry
 
5.4 notes
5.4 notes5.4 notes
5.4 notes
 
Quantum modes - Ion Cotaescu
Quantum modes - Ion CotaescuQuantum modes - Ion Cotaescu
Quantum modes - Ion Cotaescu
 
Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementation
 
Emat 213 study guide
Emat 213 study guideEmat 213 study guide
Emat 213 study guide
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)
 
Chapter 3 (maths 3)
Chapter 3 (maths 3)Chapter 3 (maths 3)
Chapter 3 (maths 3)
 
Cs229 cvxopt
Cs229 cvxoptCs229 cvxopt
Cs229 cvxopt
 
C Sanchez Reduction Saetas
C Sanchez Reduction SaetasC Sanchez Reduction Saetas
C Sanchez Reduction Saetas
 
06.Transformation.ppt
06.Transformation.ppt06.Transformation.ppt
06.Transformation.ppt
 
4th semester Civil Engineering (2012-December) Question Papers
4th semester Civil Engineering   (2012-December) Question Papers 4th semester Civil Engineering   (2012-December) Question Papers
4th semester Civil Engineering (2012-December) Question Papers
 
02 2d systems matrix
02 2d systems matrix02 2d systems matrix
02 2d systems matrix
 
Lattices and codes
Lattices and codesLattices and codes
Lattices and codes
 

Último

Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGpr788182
 
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...pujan9679
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxCynthia Clay
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingNauman Safdar
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...pujan9679
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizharallensay1
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwaitdaisycvs
 
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGParadip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGpr788182
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Adnet Communications
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Falcon Invoice Discounting
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...meghakumariji156
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...daisycvs
 
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...NadhimTaha
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPanhandleOilandGas
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon investment
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSpanmisemningshen123
 

Último (20)

WheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond InsightsWheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond Insights
 
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
Ooty Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Avail...
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
 
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al MizharAl Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
Al Mizhar Dubai Escorts +971561403006 Escorts Service In Al Mizhar
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGParadip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
Buy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail AccountsBuy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail Accounts
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
 
HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024HomeRoots Pitch Deck | Investor Insights | April 2024
HomeRoots Pitch Deck | Investor Insights | April 2024
 
PHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation FinalPHX May 2024 Corporate Presentation Final
PHX May 2024 Corporate Presentation Final
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 

Supot37255412160

  • 1. Chapter 5 Geometric Transformations
  • 2. 5.1 Basic Two-Dimensional Geometric Transformations  Operations that are applied to the geometric description of an object to change its position, orientation, or size are called geometric transformations.  Geometric transformations can be used to describe how objects might move around in a scene during an animation sequence or simply to view them from another angle.
  • 3. geometric transformations  Translation  Rotation  Scaling
  • 4.
  • 5. Two-Dimensional Translation  We perform a translation on a single coordinate point by adding offsets to its coordinates so as to generate a new coordinate position.  To translate a two-dimensional position, we add translation distances, tx and ty to the original coordinates (x,y) to obtain the new coordinate position (x’,y’), x = x+t ' x y = y + ty '
  • 6. The two-dimensional translation equations in the matrix form จาก x = x + tx ' ให้ รูป y y' = y + ty x  P=  x'  P' =  '  P' ( x' , y' )  y y    T t x  ty และ T =  P ( x, y ) t y  tx  x '   x  t x   ' =   +   x จะได้  y   y  t y    P = P +T '
  • 7. Two-Dimensional Rotation  We generate a rotation transformation of an object by specifying a rotation axis and a rotation angle.  A two-dimensional rotation of an object is obtained by repositioning the object along a circular path in the xy plane.  Parameters for the two-dimensional rotation are  The rotation angle θ  A position (x,y) – rotation point (pivot point)
  • 8. The two-dimensional rotation x ' = r cos(φ + θ ) = r cos φ cos θ − r sin φ sin θ y ' = r sin(φ + θ ) = r cos φ sin θ + r sin φ cos θ y Polar coordinate system x = r cos φ O' ( x' , y' ) y = r sin φ O ( x, y ) θ φ x P(0,0) x ' = x cos θ − y sin θ y ' = x sin θ + y cos θ
  • 9. The two-dimensional rotation  x '  cos θ - sinθ   x   ' =  y y     sin θ cosθ   y    O' ( x' , y' ) O' = R • O O ( x, y ) θ โดยที่ φ x   x'  x O=  O' =  '  P(0,0)  y y    cos θ - sinθ  และ R =   Rotation matrix sin θ cosθ 
  • 10. Ex. 1 1.0 0.5
  • 11. Rotation of a point about an arbitrary pivot position x ' = ( x − xr ) cos θ − ( y − yr ) sin θ + xr y ' = ( x − xr ) sin θ + ( y − yr ) cos θ + yr y O' ( x' , y' )  x '  cos θ - sinθ   x − xr   xr   ' =   y − y  +  y  O ( x, y )  y  sin θ cosθ     r  r θ O ' = R • O* + P φ P ( xr , y r ) x โดยที่ x − x'  O* =  ' y − y   
  • 12. Two-Dimensional Scaling  To alter the size of an object, we apply a scaling transformation.  A simple two- x = x ⋅ sx ' dimensional scaling operation is performed by multiplying object y = y ⋅ sy ' positions (x,y) by scaling factors sx and sy to produce the  x '  sx 0   x  transformed  ' =    coordinates (x’,y’).  y  0 s y   y    P = S•P '
  • 13. Any positive values can be assigned to the scaling factors.  Values less than 1 reduce the size of object;  Values greater than 1 produce enlargements.  Uniform scaling – scaling values have the same value  Differential scaling – unequal of the scaling factor
  • 14. Scaling relative to a chosen fixed point x ' = x ⋅ s x + x f (1 − s x ) y ' = y ⋅ s y + y f (1 − s y ) y P1  x '   s x 0   x  1 − s x 0   x f  •  ' =     +  0 1-s    Pf ( x f , y f ) P2  y  0 s y   y     y  y f    P3 P ' = S • P + S * • Pf x
  • 15. 5.2 Matrix Representations and Homogeneous Coordinates  Many graphics applications involve sequences of geometric transformations.  Hence we consider how the matrix representations can be reformulated so that such transformation sequence can be efficiently processed.  Each of three basic two-dimensional transformations (translation, rotation and scaling) can be expressed in the general matrix form
  • 16. P and P ’ = column vectors, coordinate position M1 = 2 by 2 array containing P = M1 ⋅ P + M 2 ' multiplicative factors, for translation M1 is the identity matrix M2 = two-element column matrix containing translational terms, for rotation or scaling M2 contains the translational terms associated with the pivot point or scaling fixed point
  • 17. P' = M1 ⋅ P + M 2  x '  1 0  x  t x   ' =    y  + t  Translation  y  0 1    y     x '  cos θ - sinθ   x − xr   xr   ' =   y − y  +  y  Rotation  y  sin θ cosθ     r  r  x '  cos θ - sinθ   x  cos θ - sinθ   xr   xr   ' =    y  − sin θ cosθ   y  +  y   y  sin θ cosθ        r   r   x '   s x 0   x  1 − s x 0   x f   ' =     +  0 1-s    Scaling  y  0 s y   y     y  y f   
  • 18. To produce a sequence of transformations such as scaling followed by rotation then translation, we could calculate the transformed coordinates one step at a time.  A more efficient approach is to combine the transformations so that the final coordinate positions are obtained directly from the initial coordinates, without calculating intermediate coordinate values.
  • 19. Homogeneous Coordinates  Multiplicative and translational terms for a two-dimensional geometric transformations can be combined into a single matrix if we expand the representations to 3 by 3 matrices.  Then we can use the third column of a transformation matrix for the translation terms, and all transformation equations can be expressed as matrix multiplications.
  • 20. But to do so, we also need to expand the matrix representation for a two-dimensional coordinate position to a three-element column matrix.  A standard technique for accomplishing this is to expand each two-dimensional coordinate-position representation (x,y) to a three-element representation (xh,yh,h), called homogeneous coordinates, where the homogeneous parameter h is a nonzero value such that xh yh x= , y= h h
  • 21. A convenient choice is simply to set h=1.  Each two-dimensional position is then represented with homogeneous coordinate (x,y,1).  The term “homogeneous coordinates” is used in mathematics to refer to the effect of this representation on Cartesian equations.
  • 22.
  • 23. x '   1 0 t x x   '     y  = 0 1 t y  y  Translation   0 1 0 1  1      P ' = T (t x , t y ) ⋅ P  x '  cos θ - sinθ 0   x   '  Rotation  y  = sin θ cosθ 0  y    1   0 0 1  1        x '  sx 0 0   x  P ' = R (θ ) ⋅ P  '     y  = 0 s y 0   y  Scaling 1  0 0 1 1       P ' = S (sx , s y ) ⋅ P
  • 24. 5.3 Inverse Transformations 1 0 - t x  Inverse translation matrix −1   T = 0 1 - t y  0 0 1    Inverse rotation matrix 1  s 0 0  cos θ sinθ 0  x  R −1 = − sin θ cosθ 0 −1  1    S = 0 0  0  0 1 sy   0 0 1 Inverse scaling matrix    
  • 25. 5.4 Two-Dimensional Composite Transformations  Using matrix representations, we can set up a sequence of transformations as a composite transformation matrix by calculating the product of the individual transformations.  Thus, if we ant to apply two transformations to point position P, the transformed location would be calculated as P = M 2 ⋅ M1 ⋅ P ' P = M ⋅P '
  • 26. (1,3) (2,3) (3,2) (-2,1) (-1,1) (1,1) (2,1) (a) (b) (-2,-1) (-1,-1) (1.63,2.37) (0.77,1.87) (-1.37,0.37) (2.63,0.63) (-2.23,-0.13) (1.77,0.13) (c) (d) (-0.37,-1.37) (-1.23,-1.87)
  • 27. Composite Two-dimensional Translations P ' = T (t 2 x , t 2 y ) ⋅ {T (t1x , t1 y ) ⋅ P} P ' = {T (t 2 x , t 2 y ) ⋅ T (t1x , t1 y )} ⋅ P composite transformation matrix 1 0 t 2 x   1 0 t1x    1 0 t1x + t 2 x          0 1 t 2 y  ⋅  0 1 t1 y   =  0 1 t1 y + t 2 y    0 0 1   0 0 1    0 0 1         T (t 2 x , t 2 y ) ⋅ T (t1x , t1 y ) = T (t1x + t 2 x , t1 y + t 2 y )
  • 28. Composite Two-dimensional Rotations P ' = R (θ 2 ) ⋅ {R (θ1 ) ⋅ P} P ' = {R (θ 2 ) ⋅ R (θ1 )} ⋅ P composite transformation matrix R (θ 2 ) ⋅ R (θ1 ) = R (θ1 + θ 2 )
  • 29.
  • 30. Composite Two-dimensional Scaling composite transformation matrix  S 2 x 0 0   S1x 0 0   S1x ⋅ S 2 x 0 0       0 S 2 y 0 ⋅ 0 S1 y 0  =  0 S1 y ⋅ S 2 y 0 0 0 1 0 0 1  0 0 1       S ( s2 x , s2 y ) ⋅ S ( s1x , s1 y ) = S ( s1x ⋅ s2 x , s1 y ⋅ s2 y )
  • 31. General Two-dimensional Pivot- Point Rotation  A transformation sequence for rotating an object about a sepcified pivot point using the rotation matrix R(θ).  Translate the object so that the pivot-point position is moved to the coordinate origin.  Rotate the object about the coordinate origin.  Translate the object so that the pivot point is returned to its original position.
  • 32. (xr,yr) (xr,yr) (a) (b) (xr,yr) (xr,yr) (c) (d)
  • 33. 1 0 xr  cos θ - sinθ 0  1 0 - xr  0 1 y  ⋅ sin θ cosθ 0 ⋅ 0 1 - y   r    r 0 0 1   0    0 1  0 0 1     cos θ - sinθ xr( 1- cos θ) + yr sin θ  = sin θ cosθ y ( 1- cos θ) − x sin θ  r r   0  0 1   T ( xr , yr ) ⋅ R (θ ) ⋅ T (− xr ,− yr ) = R ( xr , yr , θ )
  • 34. General Two-dimensional Fixed- Point Scaling  A transformation sequence to produce a two- dimensional scaling with respect to a selected fixed position (xf,yf).  Translate the object so that the fixed point coincides with the coordinate origin.  Scale the object with respect to the coordinate origin.  Use the inverse of the translation in step (1) to return the object to its original position.
  • 35. (xf,yf) (xf,yf) (a) (b) (xf,yf) (xf,yf) (c) (d)
  • 36. 1 0 x f   s x 0 0  1 0 - x f        0 1 y f  ⋅  0 s y 0  ⋅ 0 1 - y f  0 0 1   0 0 1  0 0 1         s x 0 x f ( 1-s x )   = 1 s y y f ( 1-s y ) 0 0 1    T ( x f , y f ) ⋅ S ( s x , s y ) ⋅ T (− x f ,− y f ) = S ( x f , y f , ( s x , s y ))
  • 37. General Two-dimensional Scaling Directions  We can scale an object in other directions by rotating the object to align the y desired scaling directions s2 with the coordinate axes before applying the scaling transformation.  Suppose we want to apply scaling factors with values specified by parameters s1 x and s2 in the directions s1 shown in fig.
  • 38. The composite matrix resulting from the product of - rotation so that the directions for s1 and s2 coincide with the x and y axes - scaling transformation S(s1,s2) - opposite rotation to return points to their original orientations  s1Cos 2θ + s2 Sin 2θ ( s2 − s1 )CosθSinθ 0   R (θ ) ⋅ S ( s1 , s2 ) ⋅ R (θ ) = ( s2 − s1 )CosθSinθ s1Sin 2θ + s2Cos 2θ -1 0  0 0 1  
  • 39. y y (2,2) (1/2,3/2) (0,1) (1,1) (3/2,1/2) (0,0) (1,0) x (0,0) x s1= 1 s2=2
  • 40. Matrix Concatenation Properties  Transformation products may not be commutative.  The matrix product M2M1 is not equal to M1M2.  This means that if we want to translate and rotate an object, we must be careful about the order in which the composite matrix is evaluated.  Reversing the order in which a sequence of transformations is performed may affect the transformed position of an object.
  • 41. 2 Rotation 1 Translation 1 Rotation 2 Translation
  • 42. General Two-dimensional Composite Transformations and Computational Efficiency  x '  rs xx rs xy trs x   x   '     y  = rs yx rs yy trs y   y  1   0 0 1  1        rs** are the multiplicative rotation-scaling terms (rotation angles, scaling factors)  trsx and trsy are the translation terms (translation distances, pivot-point and fixed- point coordinates, rotation angles, scaling parameters)
  • 43. Example  Scale and  rotate about its centroid coordinates (xc,yc) and  translate T (t x , t y ) ⋅ R ( xc , yc , θ ) ⋅ S ( xc , yc , s x , s y ) =  s x cos θ - s y sin θ xc (1 − s x cos θ ) + yc s y sin θ + t x     s x sin θ s y cos θ yc (1 − s y cos θ ) − xc s x sin θ + t y   0 0 1   
  • 44. Two-dimensional Rigid-body Transformation  If a transformation matrix includes only translation and rotation parameters, it is a rigid-body transformation matrix. rxx rxy trx    ryx ryy try  0 0 1     r** are the multiplicative rotation terms (rotation angles)  trx and try are the translation terms (translation distances, pivot-point and fixed-point coordinates, rotation angles)
  • 45. 5.5 Other Two-Dimensional Transformations Reflection  For a two-dimensional reflection, the image is generated relative to an axis of reflection by rotating the object 180º about the reflection axis.
  • 46. Reflection about the line y=0 (the x axis) 1 0 0 0 - 1 0    0 0 1   
  • 47. Reflection about the line x=0 (the y axis)  − 1 0 0  0 1 0    0 0 1  
  • 48. Reflection about any reflection point in the xy plane Reflection point − 1 0 0   0 - 1 0    0 0 1   
  • 49. Reflection about the reflection axis y=x 0 1 0  1 0 0   0 0 1    1. Rotate the line y=x with respect to the original through a 45 angle 2. Reflection with respect to the x axis 3. Rotate the line y=x black to its original position with a counterclockwise rotation through 45
  • 50. Reflection about the reflection axis y=-x  0 - 1 0 - 1 0 0     0 0 1   1. Clockwise rotate the line y=-x with respect to the original through a 45 angle 2. Reflection with respect to the y axis 3. Rotate the line y=-x black to its original position with a y = -x counterclockwise rotation through 45
  • 51. Shear  A transformation that distorts the shape of an object such that the transformed shape appears as if the object were composed of internal layers that had been caused to slide over each other is called a shear.
  • 52. An x-direction shear 1 shx 0 0 1 0  transformation matrix   0 0 1   y y (2,1) (3,1) (0,1) (1,1) shx = 2 (0,0) (1,0) (0,0) (1,0)
  • 53. We can generate x-direction shears relative to other reference lines 1 shx -shx ⋅ yref    0 1 0  transformation matrix 0 0 1    y y (1,1) (2,1) (0,1) (1,1) shx = ½ yref = -1 (0,0) (1,0) (0,0) (1/2,0) (3/2,0) yref = -1 yref = -1
  • 54.
  • 55. A y-direction shears relative to the line x=xref is generated with 1 0 0     shy 1 -shy ⋅ xref  transformation matrix 0 0 1    y y (1,2) (0,3/2) (0,1) (1,1) (1,1) shy = ½ (0,1/2) xref = -1 xref = -1 (0,0) (1,0) xref = -1 (0,0)
  • 56.
  • 57. Shear operations can be expressed as sequences of basic transformations.  The x-direction shear matrix 1 shx 0 0 1 0    0 0 1   can be represented as a composite transformation involving a series of rotation and scaling metrices.
  • 58.
  • 59. 5.6 Raster Methods for Geometric Transformations  Functions that manipulate rectangular pixel arrays are called raster operations and moving a block of pixel values from one position to another is termed a block transfer, a bitblt or a pixblt.  All bit settings in the rectangular area are copied as a block into another part of the frame buffer.  We can erase the pattern at the original location by assigning the background color to all pixels within that block.
  • 60.
  • 61. Array rotations that are not multiples of 90º 1 2 3 12 11 10  4 3 6 9 12  5 6  2 5 8 11 9  8 7  7 8 9   6 5 4   1 4 7 10      10 11 12 3 2 1 (a) (b) (c) The original array is shown in (a), the positions of the array elements after a 90º counterclockwise rotation are shown in (b), and the position of the array elements after a 180º rotation are shown in (c).
  • 62. 5.7 OpenGL Raster Transformations  A translation of a rectangular array of pixel- color values from one buffer area to another can be accomplished in OpenGL as a copy operation: glCopyPixels(xmin, ymin, width, height, GL_COLOR);  This array of pixels is to be copied to a rectangular area of a refresh buffer whose lower-left corner is at the location specified by the current raster position.
  • 63. We can rotate a block of pixel-color values in 90-degree increments by  first saving the block in an array, glReadPixels(xmin, ymin, width, height, GL_RGB, GL_UNSIGNED_BYTE, colorArray);  then rearranging the elements of the array and  placing it back in the refresh buffer. glDrawPixels(width, height, GL_RGB, GL_UNSIGNED_BYTE, colorArray);  We set the scaling facters with glPixelZoom(sx,sy);
  • 64. 5.8 Transformations between Two- Dimensional Coordinate Systems y’ y x’ θ yn xn x A Cartesian x’y’ system specified with coordinate origin (xn,yn) and orientation angle θ in a Cartesian xy reference frame.
  • 65. To transform object descriptions from xy coordinates to x’y’ coordinates, we set up a transformation that superimposes the axes onto the x’y’ axes.  This is done in two steps:  Translate so that the origin (xn,yn) of the x’y’ system is moved to the origin (0,0) of the xy system.  Rotation the x’ axis onto the x axis.
  • 66. 1 0 − xn  1)Translation 0 1 − y  T ( − xn , − y n ) =  n 0 0 1    y’ y y P y ’ x’ P y x’ y’ θ yn x’ θ xn x x x
  • 67. 2)clockwise rotation  cosθ sinθ 0 2.1) R(−θ ) = - sinθ cosθ 0     0  0 1 y y y ’ y ’ P P y y x’ y’ x’ θ x x x x composite matrix M xy , x ' y ' = R (−θ ) ⋅ T (− xn ,− yn )
  • 68. OR  2.2) An alternate method for describing the orientation of the x’y’ coordinate system is to specify a vector V that indicates the direction for the positive y’ axis.  We can specify vector V as a point in the xy reference frame relative to the origin of the xy system, which we can convert to y’ the unit vector, y V P V x’ v= = (v x , v y ) V yn θ xn x
  • 69. We obtain the unit vector u along the x’ axis by applying a 90º clockwise rotation to vector v u = (v y ,−v x ) = (u x , u y )  The matrix to rotate the x’y’ system into coincidence with the xy system can be written as u x u y 0    R = v x v y 0  0 0 1  
  • 70. OR  In the case that we coordinates of P0 and P1 are known, P1 - P0 v= = (v x , v y ) P1 - P0 y’ y V P x’ P1 yn θ P0 xn x
  • 71. (xf,yf) (xf,yf) (a) (b) (xf,yf) (xf,yf) (xf,yf) (c) (d) (e)