rvwhe.blogg.se

Reflection and shearing in computer graphics program
Reflection and shearing in computer graphics program











  • Computer Graphics Scan Converting a Point.
  • Computer Graphics Scan Conversion Definition.
  • Computer Graphics Direct View Storage Tubes.
  • Computer Graphics Cathode Ray Tube | CRT.
  • Computer Network | Transport Layer Protocols.
  • reflection and shearing in computer graphics program

    Printf ("Graphics error: %s \n", grapherrormsg (errorcode)) Įxit (1) /* terminate with an error code */ The coordinate of point c after reflectionĬ (4, 8) becomes c 1 (4, -8) Program to perform Mirror Reflection about a line:įloat p,p1,x1,y1,xm,ym

    reflection and shearing in computer graphics program

    The coordinates of A, B, C are given asįind reflected position of triangle i.e., to the x-axis. The last step is the rotation of y=x back to its original position that is counterclockwise at 45°.Įxample: A triangle ABC is given. After it reflection is done concerning x-axis. Reflection about line y=x: The object may be reflected about line y = x with the help of following transformation matrixįirst of all, the object is rotated at 45°. This is also called as half revolution about the origin.Ĥ. In this value of x and y both will be reversed. In the matrix of this transformation is given below Reflection about an axis perpendicular to xy plane and passing through origin: The following figure shows the reflection about the y-axisģ. The object will lie another side of the y-axis.

    reflection and shearing in computer graphics program

    Here the values of x will be reversed, whereas the value of y will remain the same. Reflection about y-axis: The object can be reflected about y-axis with the help of following transformation matrix The object will lie another side of the x-axis.Ģ. Following figures shows the reflection of the object axis. In this transformation value of x will remain same whereas the value of y will become negative. Reflection about x-axis: The object can be reflected about x-axis with the help of the following matrix Reflection about an axis perpendicular to xy plane and passing through the originġ.

    reflection and shearing in computer graphics program

    The mirror image can be either about x-axis or y-axis. It is a transformation which produces a mirror image of an object.













    Reflection and shearing in computer graphics program